摘要: 1、break 语句可用于跳到循环外 2、continue 跳出该步,继续下一个循环 阅读全文
posted @ 2017-11-10 15:51 心随风飞lss 阅读(127) 评论(0) 推荐(0) 编辑
摘要: var str="hello girl";// charAt() (返回指定位置的字符,index从0开始)console.log(str.charAt(1)); //e (返回指定位置的字符,index从0开始) // charCodeAt() 返回字符串指定位置字符的 Unicode 编码con 阅读全文
posted @ 2017-11-10 15:45 心随风飞lss 阅读(138) 评论(0) 推荐(0) 编辑
摘要: var str="hello girl";// charAt() (返回指定位置的字符,index从0开始) console.log(str.charAt(1)); //e (返回指定位置的字符,index从0开始) // charCodeAt() 返回字符串指定位置字符的 Unicode 编码 c 阅读全文
posted @ 2017-11-10 15:43 心随风飞lss 阅读(67) 评论(0) 推荐(0) 编辑