URL地址的JavaScript解析库:url()
                 jopen
                 13年前
            
                    url() 是一个简单,轻量级的URL JavaScript解析器。
url();            // http://rob:abcd1234@www.example.com/path/index.html?query1=test&silly=willy#test=hash&chucky=cheese  url('domain');    // example.com  url('hostname');  // www.example.com  url('tld');       // com  url('sub');       // www  url('.0')         // (an empty string)  url('.1')         // www  url('.2')         // example