摘要: declare const window: Window & { WeixinJSBridge: any, WVJBCallbacks: any }; declare const window: Window & { WeixinJSBridge: any, WVJBCallbacks: any } 阅读全文
posted @ 2020-11-17 10:51 秦笑 阅读(5154) 评论(0) 推荐(0)
摘要: 接口: https://v0.yiketianqi.com/api?version=v61&appid=97859956&appsecret=Jjoc7T35 官网: https://www.tianqiapi.com/文档:https://www.tianqiapi.com/index/doc?v 阅读全文
posted @ 2020-10-16 14:45 秦笑 阅读(802) 评论(0) 推荐(0)
摘要: series: [ markLine: { symbol: 'none', data: [ { yAxis: 10, name: '下限', lineStyle: { type: 'dashed', color: '#b17063' }, { yAxis: 100, name: '上限', line 阅读全文
posted @ 2020-10-12 17:09 秦笑 阅读(5247) 评论(0) 推荐(0)
摘要: angular 常出现的问题集合:https://blog.csdn.net/muguli2008/article/details/105653433/ 我们一般用 ng build 打包,然而打包出来的文件 vendor.js 内存过大,导致页面渲染花的时间较长; 打包是有模式可以选择的, 打包是 阅读全文
posted @ 2020-09-15 11:30 秦笑 阅读(1324) 评论(0) 推荐(0)
摘要: interface Route { path?: string pathMatch?: string matcher?: UrlMatcher component?: Type<any> redirectTo?: string outlet?: string canActivate?: any[] 阅读全文
posted @ 2020-06-02 11:03 秦笑 阅读(248) 评论(0) 推荐(0)
摘要: 参考 http://www.ruanyifeng.com/blog/2015/05/async.html https://segmentfault.com/a/1190000007535316 await 只能出现在 async 函数中 async 函数返回的是一个 Promise 对象。 asyn 阅读全文
posted @ 2020-06-02 10:48 秦笑 阅读(174) 评论(0) 推荐(0)
摘要: /*这些是JavaScript导入语句。angular对此一无所知。*/ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { Fra 阅读全文
posted @ 2020-06-02 10:43 秦笑 阅读(168) 评论(0) 推荐(0)
摘要: 服务是 Angular 应用的重要组成部分。在 Angular 中,服务是一个类的实例,它可以借助 Angular 的依赖注入系统来让应用中的任何一个部件都能使用它。 新建服务 import { Injectable } from '@angular/core'; @Injectable({ pro 阅读全文
posted @ 2020-06-02 10:42 秦笑 阅读(320) 评论(0) 推荐(0)
摘要: [attr.rowspan]="item.rowspan" [attr.colspan]="item.colspan" 阅读全文
posted @ 2020-05-27 17:58 秦笑 阅读(1459) 评论(0) 推荐(0)
摘要: message.service.ts // 创建可观察对象 import { Injectable } from '@angular/core'; import {Observable} from 'rxjs'; import { Subject } from 'rxjs'; @Injectable 阅读全文
posted @ 2020-05-20 12:37 秦笑 阅读(1262) 评论(0) 推荐(0)