03 2019 档案

摘要:淘宝npm镜像 npm install -g cnpm -registry=https://registry.npm.taobao.org 换回npm镜像 npm config set registry https://registry.npmjs.org 阅读全文
posted @ 2019-03-29 23:47 ronle 阅读(2082) 评论(0) 推荐(0)
摘要:1 // 组件即将被挂载到页面时执行 2 componentWillMount() { 3 console.log("componentWillMount"); 4 } 5 6 // 组件挂载到页面之后执行 7 componentDidMount() { 8 console.log("componentDidMount"); 9 } 10 11 // 组件被更新之前... 阅读全文
posted @ 2019-03-28 11:44 ronle 阅读(254) 评论(0) 推荐(0)
摘要:1 function foo() { 2 } 3 4 // foo.prototype.sayHello = function (a) { 5 // console.log(a) 6 // } 7 foo.prototype = { 8 func: function () { 9 c... 阅读全文
posted @ 2019-03-20 21:17 ronle 阅读(207) 评论(0) 推荐(0)