传值的页面:<a href='stockProductInfo.html?prdId="+v.prdID+"' target='_blank'></html>
取值的页面:
var getQueryString = function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }; $("input[name='prdID']").val(getQueryString("prdId"));//将值放入到文本框