标签:show catch event click ima close sum lap display
while,for
while 循环 var x=0; var i=1; while (i<=100){ x+=i; i++; } console.log(x) for 循环实现 var sum=0; for (var i=0;i<101;i++){ sum+=i; } console.log(sum) //异常 // try{ // console.log(123); // throw Error("define error") // } // catch(e) { // console.log(e) // } // finally { // console.log("finally") // }
标签:show catch event click ima close sum lap display
原文地址:https://www.cnblogs.com/jintian/p/11087239.html