每次调用函数返回 1---100之间的整数

 function create(){

return parseInt(Math.random() * 100)
}

window.setInterval(function () {
console.log(create());
},2000)
posted @ 2018-02-01 23:58  goodman8  阅读(336)  评论(0)    收藏  举报