会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
就一个代号
博客园
首页
新随笔
联系
管理
订阅
2018年11月28日
react第一堂课
摘要: 学过angular2 react初看起来和angular有点相识之处 react工程的构建 全局安装 npm install -g create-react-app 构建工程 create-react-app first 进入工程 cd first 启动工程 npm start 默认3000端口 地
阅读全文
posted @ 2018-11-28 22:54 就一个代号
阅读(82)
评论(0)
推荐(0)
2018年9月28日
angular
摘要: angular2 总是从当前组件传向子组件,由上向下传播,子组件向影响父组件可以使用触发器 EventEmitter是在@ angular/core模块中定义的类 @Output someChange = new EventEmitter(); 可以使用 someChange.emit(value)
阅读全文
posted @ 2018-09-28 23:32 就一个代号
阅读(91)
评论(0)
推荐(0)
2018年3月18日
es6 箭头函数
摘要: 1 :x=>x*xfunction (x){ return x*x}2: x=>{ if(x>0){ return 1; }else{ return 0; }}function (x){ if(x>0){ return 1; }else{ return 0; }}3: (x,y)=>x+yfunction (x,y){ return x+y;}4: x...
阅读全文
posted @ 2018-03-18 16:38 就一个代号
阅读(88)
评论(0)
推荐(0)
angular 构建
摘要: 全局安装 cli 进入目录: 用cli工具创建项目 进入目录 启动服务:
阅读全文
posted @ 2018-03-18 16:26 就一个代号
阅读(116)
评论(0)
推荐(0)
公告