摘要: 首先我们都知道js中构造函数一般应该是这样的 function Super (a) { this.a = a; } Super.prototype.sayHello = function() { alert('hello world'); } 但如果在构造函数中 加入 return 会是什么结果呢 阅读全文
posted @ 2018-07-17 09:50 ypm_wbg 阅读(1722) 评论(0) 推荐(0) 编辑
摘要: 安装了那个模板出了错报这样的错误 “%1 is not a valid Win32 application” 你就除那个模板新安装。 如下例: 运行 npm install -g @angular/cli 报以下错误 解决方法 npm rm -g @angular/cli npm install - 阅读全文
posted @ 2018-07-17 09:44 ypm_wbg 阅读(1470) 评论(0) 推荐(0) 编辑