跳出for循环,break和continue的区别
1.break:跳出当前循环体,也称结束当前循环体2.continue:跳出此次循环,继续执行下一次循环<script type="text/javascript"> var newRoleData = [2,1]; var oldRoleData = [2,3]; for(var k = 0; k<newRoleData.length; k++) { ...