url地址的获取

能够用到原生js的 location 对象,例如 url为  “localhost/index.html?q=javascript”  用 location.search 能够获取 "?q=javascript"(带的问号!!)javascript

相关文章
相关标签/搜索