这个问什么setInterval没有重复调用函数?
<script type="text/javascript">
function C(){this.test = "abc";}
var c = new C();
C.prototype.xx = function(obj){console.log(obj.test);}
c.xx(c);c.xx(c);c.xx(c);c.xx(c);c.xx(c);c.xx(c);
setInterval(c.xx(c),50);
</script>
这是一首
相关分类