凌优教育
您的当前位置:首页js通过location.search来获取页面传来的参数_javascript技巧

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

来源:凌优教育


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






测试

abcd.html?name=xyz

应该弹出xyz

显示全文