2017年12月22日
摘要: shared-service.ts Now inject the instance of the above service in the constructor of both the parent and child component. The child component will be 阅读全文
posted @ 2017-12-22 01:40 jayruan 阅读(368) 评论(0) 推荐(0) 编辑
2017年12月15日
摘要: <html manifest="/m.appcache"> window.applicationCache.onupdateready = function (e) { location.reload();} CACHE MANIFEST #version 2017-02-01.012CACHE: 阅读全文
posted @ 2017-12-15 23:38 jayruan 阅读(226) 评论(0) 推荐(0) 编辑
2017年12月14日
摘要: mongod.exe --bind_ip yourIPadress --logpath "C:\data\dbConf\mongodb.log" --logappend --dbpath "C:\data\db" --port yourPortNumber --serviceName "YourSe 阅读全文
posted @ 2017-12-14 00:01 jayruan 阅读(130) 评论(0) 推荐(0) 编辑
2017年12月4日
摘要: db.students.update( { _id: 1 }, { $push: { quizzes: { $each: [ { id: 3, score: 8 }, { id: 4, score: 7 }, { id: 5, score: 6 } ], $sort: { score: 1 } } 阅读全文
posted @ 2017-12-04 23:53 jayruan 阅读(413) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/yaomingyang/article/details/78701643 http://blog.csdn.net/yaomingyang/article/details/78701643 一、$pull修饰符会删除掉数组中符合条件的元素,使用的格式是: [ 阅读全文
posted @ 2017-12-04 23:50 jayruan 阅读(11179) 评论(0) 推荐(0) 编辑
2017年12月3日
摘要: 使用forever运行nodejs应用 何为forever forever可以看做是一个nodejs的守护进程,能够启动,停止,重启我们的app应用。 官方的说明是说: A simple CLI tool for ensuring that a given script runs continuou 阅读全文
posted @ 2017-12-03 19:22 jayruan 阅读(298) 评论(0) 推荐(0) 编辑
摘要: <script id="worker" type="app/worker"> addEventListener('message', function(d) { console.log(d) // postMessage('Work done!'); }, false); function time 阅读全文
posted @ 2017-12-03 10:28 jayruan 阅读(545) 评论(0) 推荐(0) 编辑
2017年12月2日
摘要: 2 区别: 1)块级元素会独占一行,其宽度自动填满其父元素宽度 行内元素不会独占一行,相邻的行内元素会排列在同一行里,知道一行排不下,才会换行,其宽度随元素的内容 而变化 2) 块级元素可以设置 width, height属性,行内元素设置width, height无效 【注意:块级元素即使设置了宽 阅读全文
posted @ 2017-12-02 06:30 jayruan 阅读(96) 评论(0) 推荐(0) 编辑
2017年11月15日
摘要: async模块是为了解决嵌套金字塔,和异步流程控制而生.常用的方法介绍 npm 安装好async模块,然后引入就可以使用 var async = require('async'); 1. series(tasks,[callback]) 多个函数从上到下依次执行,相互之间没有数据交互 http:// 阅读全文
posted @ 2017-11-15 23:26 jayruan 阅读(225) 评论(0) 推荐(0) 编辑
2017年11月9日
摘要: electron-packager /Users/chrisward/Workspace/sp_electron MarvelBrowse --platform=darwin --arch=x64 --version=0.36.10 --out=/Users/chrisward/Workspace 阅读全文
posted @ 2017-11-09 00:45 jayruan 阅读(161) 评论(0) 推荐(0) 编辑
2017年11月7日
摘要: HTML5 postMessage 和 onmessage API 详细应用 姜 俊杰2013 年 1 月 10 日发布 WeiboGoogle+用电子邮件发送本页面 0 姜 俊杰2013 年 1 月 10 日发布 姜 俊杰2013 年 1 月 10 日发布 WeiboGoogle+用电子邮件发送本 阅读全文
posted @ 2017-11-07 23:37 jayruan 阅读(1139) 评论(0) 推荐(0) 编辑
2017年10月31日
摘要: $ npm install -g npm-check-updates $ npm-check-updates -u $ npm install 阅读全文
posted @ 2017-10-31 03:00 jayruan 阅读(79) 评论(0) 推荐(0) 编辑
2017年10月30日
摘要: chart.service.ts: websocket.service.ts: 阅读全文
posted @ 2017-10-30 23:39 jayruan 阅读(815) 评论(0) 推荐(0) 编辑
2017年10月26日
摘要: mongodb 日期处理:1,用new Date()存入数据库,要转一下。2,输出的显示的时候,要把data 后的Z 去啦。3, 查询时数据时不用处理。 阅读全文
posted @ 2017-10-26 10:28 jayruan 阅读(2405) 评论(1) 推荐(0) 编辑
2017年10月15日
摘要: 一、router.navigate的使用 navigate是Router类的一个方法,主要用来跳转路由。 函数定义: ? 1 navigate(commands: any[], extras?: NavigationExtras) : Promise`<boolean>` ? 1 navigate( 阅读全文
posted @ 2017-10-15 22:18 jayruan 阅读(2012) 评论(0) 推荐(0) 编辑
2017年10月12日
摘要: var getTime = function() { var _ = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09'], //补零 d = new Date(), h = d.getHours(), m = d.getMinut 阅读全文
posted @ 2017-10-12 06:14 jayruan 阅读(449) 评论(0) 推荐(0) 编辑
2017年10月6日
摘要: Certificates Certificates 即 ”证书“,约等于通行证,申请证书是我们进行真机调试与发布的第一步。证书主要分为两类:Development证书用来开发和调试应用程序Production主要用来分发应用程序(根据证书种类有不同作用)下面是证书的分类信息:(括号内为证书有效期) 阅读全文
posted @ 2017-10-06 01:43 jayruan 阅读(596) 评论(0) 推荐(0) 编辑
2017年10月5日
摘要: navigate是Router类的一个方法,主要用来跳转路由。 1 2 3 4 5 6 7 8 9 interface NavigationExtras { relativeTo : ActivatedRoute queryParams : Params fragment : string pres 阅读全文
posted @ 2017-10-05 00:11 jayruan 阅读(1287) 评论(0) 推荐(0) 编辑
2017年10月1日
摘要: currencydateuppercasejsonlimitTolowercaseasyncdecimalpercent ts == import { CurrencyPipe } from '@angular/common'; this.currencyPipe.transform(netSale 阅读全文
posted @ 2017-10-01 01:22 jayruan 阅读(105) 评论(0) 推荐(0) 编辑
2017年9月26日
摘要: shared-service.ts Now inject the instance of the above service in the constructor of both the parent and child component. The child component will be 阅读全文
posted @ 2017-09-26 09:37 jayruan 阅读(144) 评论(0) 推荐(0) 编辑