刷新页面 数组轮播
<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
? ? window.οnlοad=function(){
? ? ? ? var Arr=['hss33tb','wsan76'];
? ? ? ? var n = Math.floor(Math.random() * Arr.length + 1)-1;
? ? ? ? ? ? $('.weixin').html(Arr[n]);
? ? }
</script>
總結
- 上一篇: 在js在页面中添加百度统计代码
- 下一篇: 随机数的方法