10 2017 档案
并且需要用websocket实时接收数据 VS 组件ng2websocket的
摘要:chart.service.ts: websocket.service.ts:
阅读全文
MONGODB Date 处理方法
摘要:mongodb 日期处理:1,用new Date()存入数据库,要转一下。2,输出的显示的时候,要把data 后的Z 去啦。3, 查询时数据时不用处理。
阅读全文
navigate
摘要:一、router.navigate的使用 navigate是Router类的一个方法,主要用来跳转路由。 函数定义: ? 1 navigate(commands: any[], extras?: NavigationExtras) : Promise`<boolean>` ? 1 navigate(
阅读全文
setTime
摘要:var getTime = function() { var _ = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09'], //补零 d = new Date(), h = d.getHours(), m = d.getMinut
阅读全文
Certificates
摘要:Certificates Certificates 即 ”证书“,约等于通行证,申请证书是我们进行真机调试与发布的第一步。证书主要分为两类:Development证书用来开发和调试应用程序Production主要用来分发应用程序(根据证书种类有不同作用)下面是证书的分类信息:(括号内为证书有效期)
阅读全文
navigate是Router类的一个方法,主要用来跳转路由。
摘要:navigate是Router类的一个方法,主要用来跳转路由。 1 2 3 4 5 6 7 8 9 interface NavigationExtras { relativeTo : ActivatedRoute queryParams : Params fragment : string pres
阅读全文
记一下吧,又记不住啦。pipe
摘要:currencydateuppercasejsonlimitTolowercaseasyncdecimalpercent ts == import { CurrencyPipe } from '@angular/common'; this.currencyPipe.transform(netSale
阅读全文