微信浏览器中window.location.href失效的问题
window.location.href = url + ‘?v=’ + (new Date().getTime()).
后面v为随机数,意为解决缓存问题,后面在加具体参数,可直接加. eg:
window.location.href = url + ‘?v=’ + (new Date().getTime())+’&&temp=’ 1
加当页取值参数, 应加在随机数v前面,否则后台接收时为null. eg:
var userKey = $("#userKey").val();
window.location.href= url+’?userKey=’+userKey +’&&v=’+ (new Date().getTime());