04 2012 档案
摘要:for循环:for(i=start; i<end; i++) {}while循环: (注意, 若条件一直为真, 则会进入死循环, 浏览器就hang掉)while (condition) { //do something; //change condition;}递归:使用for循环做substringfunction substring(all, start, end) { for(i=start; i<=end; i++) { console.log(all[i]); }substring("eclipse", 1, 4); //clip使用递...
阅读全文

浙公网安备 33010602011771号