<script>
var random = Math.floor(Math.random()*10000);
var str = window.location.href+random;
</script>random就是生成的随机数,window.location.href是你的url的字符串,明白了吧!
var random = Math.floor(Math.random()*10000);
var str = window.location.href+random;
</script>random就是生成的随机数,window.location.href是你的url的字符串,明白了吧!
<script>
document.getElementById('scrip1').src = "state.aspx?a=" + Math.random();
</script>