我想拿个字符串
var a = "http://example.com/aa/bb/"
并将其处理成一个对象
a.hostname == "example.com"
和
a.pathname == "/aa/bb"
javascript url
javascript ×1
url ×1