获取参数如果是按照第一种方式进行了传递则有参数,那么我们怎们获取url中的参数那,那就使用js默认的属性: var url = location.search; 其中的location.search 就是js自动获取url中? 后的所有值。获取了这个之后就可以使用substri...
全文
回复(1) 2018-08-13 10:08 来自版块 - 计算机知识区
表情
ready1.传递参数: window.location.href = "./list.html?id="+id; 2.接收参数: (1)接收参数函数封装 function GetRequest() { var url = location.s...(2018-08-13 10:09)


返回顶部