javascript中的window.location.search方法简介
内容摘要
window.location.search方法是截取当前url中“?”后面的字符串,
例如:index.php?act=doctor,截取后的字符串就是act=doctor
例如:index.php?act=doctor,截取后的字符串就是act=doctor
文章正文
window.location.search方法是截取当前url中“?”后面的字符串,
例如:index.php?act=doctor,截取后的字符串就是act=doctor
代码注释