H5a链接后拼接多个参数(附源码)

356 阅读1分钟

页面url后拼接参数 

<a href="index.html?type=14&page=1&count=10"></a>

js中url后拼接参数

var p=1
window.location.href="index.html?page="+p+'&count=10'+'&type=14'