输入banner图图片脚本导航/分类

js通过location.search来获取页面传来的参数_javascript技巧

这篇文章主要介绍了通过window.location.search来获取页面传来的参数,经测试是OK的

测试

abcd.html?name=xyz

应该弹出xyz