03 2019 档案

摘要:cat /usr/local/opt/nginx/ //nginx路径 cd /usr/local/opt/nginx/html //localhost的指向 ln -s ~/Documents docs //建立软链示例 eg: 在文件夹中建立软链接(类似于win系统的快捷方式) 如下:桌面上的一 阅读全文
posted @ 2019-03-13 14:19 CatherLee 阅读(2703) 评论(0) 推荐(0)
摘要:常用 ismobilejs https://www.npmjs.com/package/ismobilejs 函数库 Lodash(推荐):github.com/lodash/loda… Underscore:underscorejs.org/ Ramda:github.com/ramda/ramd 阅读全文
posted @ 2019-03-08 17:30 CatherLee 阅读(601) 评论(1) 推荐(0)
摘要:https://cli.vuejs.org/zh/guide/build-targets.html#%E5%BA%93 https://github.com/lipis/flag-icon-css 阅读全文
posted @ 2019-03-05 17:07 CatherLee 阅读(1279) 评论(0) 推荐(0)
摘要:一、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 阅读(2502) 评论(0) 推荐(0)
摘要:法一: charles代理打开 手机电脑连接同一个局域网下 手机wifi手动设置代理(host改成电脑的本机IP,端口8888) 谷歌调试: 打开谷歌浏览器,chrome://inspect/#device https://juejin.cn/post/7076399416956944414 法二: 阅读全文
posted @ 2019-03-01 16:47 CatherLee 阅读(168) 评论(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 阅读(7291) 评论(0) 推荐(0)