JavaScript循环 2018-06-25 本文已影响0人 紫罗兰丶 程序中进行有规律的重复性操作,需要用到循环语句。 for循环 for(var i=0;i<len;i++) { ...... } while循环 var i=0; while(i<8) { ...... i++ }