摘要: 1)安装node.js v.6以上版本 2)设置淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 凡是使用npm的命令都可以通过cnpm去替代 3)安装 vue-cli:(vue的脚手架工具) cnpm install ... 阅读全文
posted @ 2019-07-04 17:16 巴拉巴拉·芭芭拉 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.href//跳转刷新页面 @click = jumpCompanyProfile(item.picktextUrl)//参数是后台给的接口 jumpCompanyProfile(url){ window.location.href = url } 2.router//跳转时不刷新页面 1)不带参数 @click = jumpCompanyProfile(); jumpCompanyP... 阅读全文
posted @ 2019-07-04 16:02 巴拉巴拉·芭芭拉 阅读(1778) 评论(0) 推荐(0) 编辑
摘要: 我是内容盒子 /*方法一:position margin: auto*/ .container { position: relative; } .content { position: absolute; top: 0; left: 0; right: 0; bottom: 0;... 阅读全文
posted @ 2019-07-03 12:47 巴拉巴拉·芭芭拉 阅读(250) 评论(0) 推荐(0) 编辑
摘要: //查找字符串 //1.chartAt()返回指定位置的字符例如第0位是哪个字母 var str = "hello world"; console.log(str.charAt(0)); //indexOf()检索字符串例如h在哪个位置,第一次出现的位置,没有返回-1 console.log(s... 阅读全文
posted @ 2019-05-21 17:48 巴拉巴拉·芭芭拉 阅读(2036) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-21 17:42 巴拉巴拉·芭芭拉 阅读(532) 评论(0) 推荐(0) 编辑
摘要: var str = "name=张三&sex=1&address=中国"; var arr = str.split("&");//["name=张三", "sex=1", "address=中国"] var obj = {}; for(var i = 0; i < arr.length; i++) { var arr2 = arr[i].split("=");//["name", "张三"][". 阅读全文
posted @ 2019-05-20 21:30 巴拉巴拉·芭芭拉 阅读(3370) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-05-16 18:16 巴拉巴拉·芭芭拉 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 变量、作用域和垃圾回收 阅读全文
posted @ 2019-05-16 17:07 巴拉巴拉·芭芭拉 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-13 21:30 巴拉巴拉·芭芭拉 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-10 17:47 巴拉巴拉·芭芭拉 阅读(160) 评论(0) 推荐(0) 编辑