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

2018年7月20日

摘要: angular2的pipe管道 {{ time | date:'yyyy-MM-dd' }},使用date 进行日期格式调整的时候,在安卓显示OK,IOS 不显示 解决办法 :使用angular2-moment 1.安装angular2-moment 2.module中配置 3、使用 4、更多配置参 阅读全文
posted @ 2018-07-20 14:53 温温婉婉 阅读(393) 评论(0) 推荐(0) 编辑

2018年7月17日

摘要: 将开发好的angular2项目打包发布步骤: 1.使用ng build --prod --aot进行打包,打包完会在项目的根目录出现一个dist文件夹 里面的内容长这个样子 2. 将dist/ccyd/目录下的index.html中的 <base href="/"> 改为 <base href="/ 阅读全文
posted @ 2018-07-17 15:56 温温婉婉 阅读(98) 评论(0) 推荐(0) 编辑

2018年6月28日

摘要: ionic应用打包上传应用宝失败。 原因:版本低于已上线的版本 解决: 如图,在config.xml中 添加一个android-versionCode="628" 然后在 platform/android 目录下的AndroidManifest.xml中 将versionCode修改一致就ok了 阅读全文
posted @ 2018-06-28 15:17 温温婉婉 阅读(437) 评论(0) 推荐(0) 编辑

2018年6月11日

摘要: 我的需求是:在首页中有个tab,分别是 homepart 、carpart 、 minepart。各个模块的part 里还会嵌套子路由 步骤: 1.新建app.router.ts 作为app阶层的路由文件,内容如下 上面是定义了一个常量 appRoutes来管理路由,然后用export 导出,然后下 阅读全文
posted @ 2018-06-11 18:09 温温婉婉 阅读(1443) 评论(0) 推荐(1) 编辑
 
摘要: 删除 node_modules文件夹 不要用cnpm install 用npm install 然后再ng serve 就能启动成功了 阅读全文
posted @ 2018-06-11 11:13 温温婉婉 阅读(265) 评论(0) 推荐(0) 编辑

2018年5月29日

摘要: cd 进入项目 运行以下这句就好 阅读全文
posted @ 2018-05-29 17:00 温温婉婉 阅读(182) 评论(0) 推荐(0) 编辑

2018年5月18日

摘要: 在使用 display:flex 的弹性盒子时,用到flex-grow:2 时不生效,只需在flex-grow:2 的前面增加一行css: width:0 即可 <div style="display:flex;"> <div style="width:0;flex-grow:2"></div> < 阅读全文
posted @ 2018-05-18 16:31 温温婉婉 阅读(3510) 评论(1) 推荐(0) 编辑

2018年5月13日

摘要: 解决方法很简单: 如下: <div style="min-width:1050px"> <div style="float:left;width:500px;"></div> <div style="float:right;width:500px;"></div> </div> 只需在最外层的div 阅读全文
posted @ 2018-05-13 12:04 温温婉婉 阅读(1155) 评论(0) 推荐(0) 编辑

2018年5月9日

摘要: iframe内嵌页面 阅读全文
posted @ 2018-05-09 15:15 温温婉婉 阅读(2620) 评论(0) 推荐(0) 编辑

2018年4月23日

摘要: 原文链接:http://www.jb51.net/article/73916.htm var dynamicLoading = { css: function(path){ if(!path || path.length 0){ throw new Error('argument "path" is 阅读全文
posted @ 2018-04-23 16:52 温温婉婉 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页