标签:oca bsp 页面 and dex ati indexof rand eof
window.onload = function() {
/*
加时间戳 ==>最好是时间戳
var timestamp = Date.parse(new Date());
var timestamp = (new Date()).valueOf();
var timestamp=new Date().getTime();
*/
if (location.search.indexOf("?") == -1) { //判断是否含有‘?’
location.href += "?myurl=" + Math.random(100);
}
else {
if (location.search.indexOf("myurl") == -1) location.href += "&myurl=" + Math.random(100);
}
}
标签:oca bsp 页面 and dex ati indexof rand eof
原文地址:https://www.cnblogs.com/lmxxlm-123/p/8881716.html