摘要: 1.变量的交换 通过临时变量交换 var n1=55; var n2=66; var temp; temp=n1; n1=n2; n2=temp; console.log(n1,n2);//66,55 var a1=1 var a2=3 a1=a1+a2 a2=a1-a2 a1=a1-a2 cons 阅读全文
posted @ 2019-10-11 20:52 星雨,恒奋斗,过客 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑