摘要: React-intl 原文链接:https://segmentfault.com/a/1190000005824920 项目地址: https://github.com/yahoo/react-intl React-intl是雅虎的语言国际化开源项目FormatJS的一部分,通过其提供的组件和API 阅读全文
posted @ 2017-05-23 14:18 lonelyGentleman 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: 方式一: ES6 方式二: ES5 方式三:函数式 /*无状态的,不能使用this*/ 组件的使用: 阅读全文
posted @ 2017-05-18 11:21 lonelyGentleman 阅读(320) 评论(0) 推荐(0) 编辑
摘要: AMD模块: CommomJS模块: ES6模块: 阅读全文
posted @ 2017-05-17 15:24 lonelyGentleman 阅读(186) 评论(0) 推荐(0) 编辑
摘要: date: this.getDate(0),effectivityDate: this.getDate(60), getDate (AddDayCount) { let date = new Date() date.setDate(date.getDate() + AddDayCount)// 获取AddDayCount天后的日期 let y = ... 阅读全文
posted @ 2017-05-04 15:11 lonelyGentleman 阅读(340) 评论(0) 推荐(0) 编辑
摘要: git fetch --allgit reset --hard origin/master 阅读全文
posted @ 2017-04-28 18:06 lonelyGentleman 阅读(2383) 评论(0) 推荐(0) 编辑
摘要: ps:素材自己去截图切 阅读全文
posted @ 2017-04-25 21:01 lonelyGentleman 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-25 20:32 lonelyGentleman 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-19 20:13 lonelyGentleman 阅读(2158) 评论(0) 推荐(0) 编辑
摘要: 父向子传值: //父组件 //子组件 子向父传值: //子组件 <input type="radio" @click="check(feature.description)"/> 路由传参: 阅读全文
posted @ 2017-04-18 22:14 lonelyGentleman 阅读(5817) 评论(0) 推荐(0) 编辑
摘要: var vm = new Vue({ el:"#app", data:{ totalMoney:0, productList:[], checkAllFlag:false , delFlag:false delOneProduct:[], }, filters:{ //局部过滤器 ,调用方法{{nu 阅读全文
posted @ 2017-04-18 21:40 lonelyGentleman 阅读(433) 评论(0) 推荐(0) 编辑