上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 1.安装e-charts项目依赖 npm install echarts --save 或者 npm install echarts -S 2.引入项目中 全局引入(main.js) import echarts from 'echarts' Vue.prototype.$echarts = ech 阅读全文
posted @ 2019-10-11 17:25 星雨,恒奋斗,过客 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 1.过滤器(filter)(可以全局注册或者局部注册) 过滤器可以用在两个地方:双花括号插值和 v-bind 表达式 定义局部方法 filters:{ xx(){ } } eg: <!-- 在双花括号中 --> {{ name | capitalize }} <!-- 在 `v-bind` 中 -- 阅读全文
posted @ 2019-10-11 09:59 星雨,恒奋斗,过客 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.字符串首字母大写 var str="xiamgfafsfsfdsf fdsfsfsf" str = str.substring(0,1).toUpperCase()+str.substring(1); console.log(str) //Xiamgfafsfsfdsf fdsfsfsf 2.创 阅读全文
posted @ 2019-10-08 16:21 星雨,恒奋斗,过客 阅读(147) 评论(0) 推荐(0) 编辑
摘要: git的一些基本命令: git branch -r:查看远程仓库所有分支 git branch:查看本地分支 git remote -v :查看远程仓库 git checkout xxx:切换分支 git push origin [name]: 创建远程分支(本地分支push到远程) git mer 阅读全文
posted @ 2019-10-08 10:42 星雨,恒奋斗,过客 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ?a=1234 对应是:location.search #/orderSuccess?orderid=021223242424 对应是:location.hash 阅读全文
posted @ 2019-10-06 21:45 星雨,恒奋斗,过客 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.map ,遍历数组和对象 _.map(obj, (item, index)=>{} ) 2.chunk,将数组进行切分 const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; //数组的切分 _.chunk(arr, 2); console.log(_.chunk(ar 阅读全文
posted @ 2019-09-26 21:06 星雨,恒奋斗,过客 阅读(701) 评论(0) 推荐(0) 编辑
摘要: vue--http请求 阅读全文
posted @ 2019-09-22 16:04 星雨,恒奋斗,过客 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.ico图标的生成的网址: http://bitbug.net/ <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> 2.字体图标的网址: https://icomoon.io/app 3.图片压缩的网址: http 阅读全文
posted @ 2019-09-07 11:57 星雨,恒奋斗,过客 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.奇偶属性: /*奇数*/ ul li:nth-child(odd){ background-color: green; } /*偶数*/ ul li:nth-child(even){ background-color: red; } 2.大于某个数的选择器 li大于1的li元素的变成红色 ul 阅读全文
posted @ 2019-09-06 14:06 星雨,恒奋斗,过客 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1.英文自动换行 .css{ word-wrap: break-word; word-break: normal; } 2.强制英文单词断行 .css{word-break:break-all; } 3.一行文字超出,出现省略号 css{ } 4.三行文字超出,出现省略号 css{ } 阅读全文
posted @ 2019-09-02 21:21 星雨,恒奋斗,过客 阅读(377) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页