摘要: 一、for循环 1 (function() { 2 for(var i=0, len=demoArr.length; i<len; i++) { 3 if (i == 2) { 4 // return; // 函数执行被终止 5 // break; // 循环被终止 6 continue; // 循 阅读全文
posted @ 2019-03-01 17:32 CatherLee 阅读(2447) 评论(0) 推荐(0) 编辑
摘要: 法一: charles代理打开 手机电脑连接同一个局域网下 手机wifi手动设置代理(host改成电脑的本机IP,端口8888) 谷歌调试: 打开谷歌浏览器,chrome://inspect/#device https://juejin.cn/post/7076399416956944414 法二: 阅读全文
posted @ 2019-03-01 16:47 CatherLee 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个数组,判断数组中是否存在某个值 var newarr = [ { num: 1, val: 'ceshi', flag: 'aa' }, { num: 2, val: 'ceshi2', flag: 'aa2' } ] console.log(newarr.filter(item => 阅读全文
posted @ 2019-03-01 16:15 CatherLee 阅读(7262) 评论(0) 推荐(0) 编辑