图片 随机显示

<script>
$(function(){
var arr = new Array(
"static/picture/zf.jpg",
"static/picture/gf.jpg",
"static/picture/qi.jpg",

);
var object= document.getElementById("erweima");

object.src=arr[Math.floor(Math.random() * arr.length)];
});
</script>

posted @ 2020-08-21 17:18  阿波罗任先生  阅读(188)  评论(0编辑  收藏  举报