上一页 1 2 3 4 5 6 ··· 10 下一页

2018年9月11日

摘要: 在ionic3 的目录结构下,有一个主题 variables.scss文件,用于设置组件的颜色 $colors 中的内容如下: 阅读全文
posted @ 2018-09-11 10:12 温温婉婉 阅读(794) 评论(0) 推荐(0) 编辑

2018年9月7日

摘要: 文章参考地址:https://github.com/jpush/jpush-phonegap-plugin 我的环境: 1.ionic: 2.cordova: 3.npm 4. node 5.java 6. gradle: 目前想起来的环境配置大概就这些了,其中有几个注意点 1.node 版本 不要 阅读全文
posted @ 2018-09-07 09:42 温温婉婉 阅读(927) 评论(0) 推荐(0) 编辑

2018年9月6日

摘要: 如:想要查看node的版本:npm view node versions 或者 如:想要查看jquery 的版本:npm view jquery versions ... 阅读全文
posted @ 2018-09-06 10:24 温温婉婉 阅读(944) 评论(0) 推荐(0) 编辑

2018年9月4日

摘要: 1. Can't bind to 'ngModel' since it isn't a known property of 'input'. 注:share中的模块不仅要imports 还要exports 给其他模块使用 解决办法: 1.app.module.ts中这个要引用 2. 在share.m 阅读全文
posted @ 2018-09-04 15:42 温温婉婉 阅读(148) 评论(0) 推荐(0) 编辑
 
摘要: 上次记录了模块的拆分与汇总,既然有模块就有路由 在每个module文件的统计目录下,会有相对应的router文件,用来记录当前模块的页面路由。 如下图: 其中,有句 RouterModule.forChild(routes) 值得注意,它表示这是子路由 。 既然有子路由,就会有根路由。一般来说 根路 阅读全文
posted @ 2018-09-04 15:35 温温婉婉 阅读(604) 评论(0) 推荐(0) 编辑
 
摘要: 1. 分模块module 如下图 ,几乎每个目录下都有一个module文件。这些module文件各自掌管着该模块的页面 那么,要怎么将这些模块汇总运行呢??? 解决:将这些模块在app.module.ts中引入,不要忘了import 也要 阅读全文
posted @ 2018-09-04 15:27 温温婉婉 阅读(399) 评论(0) 推荐(0) 编辑

2018年9月3日

摘要: 原文:https://www.tslang.cn/docs/handbook/classes.html 派生类包含了一个构造函数,它 必须调用 super(),它会执行基类的构造函数。 而且,在构造函数里访问 this的属性之前,我们 一定要调用 super()。 这个是TypeScript强制执行 阅读全文
posted @ 2018-09-03 14:02 温温婉婉 阅读(149) 评论(0) 推荐(0) 编辑
 
摘要: 属性接口 interface SquareConfig { color?: string; width?: number; } function createSquare(config: SquareConfig): { color: string; area: number } { // ... 阅读全文
posted @ 2018-09-03 13:52 温温婉婉 阅读(146) 评论(0) 推荐(0) 编辑

2018年8月28日

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2018-08-28 15:23 温温婉婉 阅读(1537) 评论(0) 推荐(0) 编辑

2018年8月27日

摘要: rxjs中的BehaviorSubject方法可以记住上一次的值 阅读全文
posted @ 2018-08-27 17:29 温温婉婉 阅读(141) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页