httpurl
basic url methods.
usage
demo
var url = '//m.taobao.com?ttid=201301@taobao_iphone_3.4.5';console;// http://m.taobao.com?ttid=201301@taobao_iphone_3.4.5
attributes and methods.
- protocol
- username
- password
- hostname
- port
- pathname
- search
- hash
- params
params demo
urlparamsttid;// 201301@taobao_iphone_3.4.5 urlparamsttid = '12tx0065';// 12tx0065 urlparams = ttid:'12tx0065' refid:'qwer';console// ttid=12tx0065&refid=qwer