get _t(){
let sArr =window.navigator.userAgent.toLowerCase().replace(/\s+/g,'').split('');//去除空格之后 用空格分割
let t ='/_'+Date.parse(new Date());
return sArr.sort(()=> Math.random() -0.5).join('')+t;
}
获取随机字符串
function (length) {
let str ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
s ='';
while (length--) {
let rand = Math.round(Math.random() * str.length);
s += str.charAt(rand);
}
return s;
}