2020年5月15日
摘要: 问题4 host属性还有,这个属性是从指令继承的,单位的项目可能是tslint的警告,周一再看下。 问题1,2,3貌似是同一块的知识点。 问题3 entryComponents这个配置项,注释如下 The set of components to compile when this NgModule 阅读全文
posted @ 2020-05-15 17:53 🐙小丸子 阅读(393) 评论(0) 推荐(0) 编辑
2020年5月7日
摘要: 3.5.6 编写ProdctsList的视图模板 2. isSelected 代码如下: isSelected(product: Product): boolean { if (!product || !this.currentProduct) { return; } return product. 阅读全文
posted @ 2020-05-07 22:20 🐙小丸子 阅读(185) 评论(0) 推荐(0) 编辑
2020年5月4日
摘要: 一个类对于其他类知道的越少越好,就是说一个对象应当对其他对象有尽可能少的了解,只和朋友通信,不和陌生人说话。 在组件逻辑处理时尽量不要打破模型的封装,模型对象内有他自己的属性方法,而组件应该是不同的逻辑时执行不同的方法,而不应该操作其属性。 1.9.1 创建Article类 收获 与此对应的MVC指 阅读全文
posted @ 2020-05-04 01:08 🐙小丸子 阅读(115) 评论(0) 推荐(0) 编辑
2020年5月3日
摘要: <form class="ui large form segment"> <h3 class="ui header">Add a Link</h3> <div class="field"> <label for="title">Title:</label> <input name="title" # 阅读全文
posted @ 2020-05-03 13:12 &#128025;小丸子 阅读(232) 评论(0) 推荐(0) 编辑
2020年5月1日
摘要: 国内镜像下载地址: https://github.com/waylau/git-for-win 设置用户名 git config --global user.name 设置邮箱 git config --global user.email 查询用户名和邮箱 git config user.name, 阅读全文
posted @ 2020-05-01 12:45 &#128025;小丸子 阅读(138) 评论(0) 推荐(0) 编辑
2020年4月26日
摘要: XHR XMLHttpRequest 阅读全文
posted @ 2020-04-26 20:12 &#128025;小丸子 阅读(505) 评论(0) 推荐(0) 编辑