码迷,mamicode.com
首页 > 编程语言 > 详细

[Javascript] Using console.count to Count Events

时间:2016-05-16 15:49:10      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

Learn how to user console.count in order to log out how many times a given thing has happened.

 

for(var i = 0; i < 10; i++){
    var num = Math.random() * 100;
    if(num > 50){
        console.count("Greater than 50");
    }else{
        console.count("less than 50");
    }
}

 

技术分享

[Javascript] Using console.count to Count Events

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5498289.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!