
笔记
Guess what
renefox
StackOverFlow, you're my only hope!
展开
-
Promise
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <scri原创 2022-03-07 11:49:14 · 139 阅读 · 0 评论 -
Upgrade Angular 8->13
31.通过对Angular进行脏检查,您了解什么? 在Angular中,摘要过程称为脏检查。之所以调用它,是因为它扫描整个范围以进行更改。换句话说,它将所有新的作用域模型值与以前的作用域值进行比较。 由于所有监视变量都包含在单个循环中,因此任何变量的任何更改/更新都将导致重新分配DOM中存在的其余监视变量。被监视的变量处于单个循环(摘要循环)中, 任何变量的任何值更改都会在DOM中重新分配其他被监视变量的值 28.什么是Angular中的依赖注入? 依赖注入(DI)是一种软件设计模式,其中对象作为依赖关系传原创 2021-12-20 11:06:10 · 710 阅读 · 0 评论 -
forkJoin
forkJoin([ this.documentCenterService.getATerms(), this.documentCenterService.getBTerms() ]).subscribe( ([aTerms, bTerms]) => { this.pdfUrl = aTerms[TermType.Od] ?? bTerms[TermT...原创 2021-11-30 15:08:26 · 219 阅读 · 0 评论 -
get pdf blob
ngOnInit() { this.httpClient .get( 'https://www.test.pdf', { responseType: 'blob' } ) .subscribe((stream) => { // const byt.原创 2021-11-29 17:21:39 · 417 阅读 · 0 评论 -
Angular随便记记
父子组件传值 父 <app-hero-detail [hero]=“selectedHero”> [hero]=“selectedHero” 是 Angular 的属性绑定语法。 [hero]=“selectedHero” is an Angular property binding. 子 @Input() hero?: Hero; 添加一个带有 @Input() 装饰器的 hero 属性。 Add a hero property, preceded by the @Input() decora原创 2021-11-10 10:01:40 · 909 阅读 · 0 评论 -
Angular iframe embed pdf adjust img width
Problems displaying PDF in iFrame on Mobile Safari https://stackoverflow.com/questions/15480804/problems-displaying-pdf-in-iframe-on-mobile-safari As of iOS 8, mobile Safari renders the PDF as an image within an HTML document inside the frame. You can then原创 2021-11-01 18:43:34 · 215 阅读 · 0 评论 -
Prettier Fomatter
https://zhuanlan.zhihu.com/p/81764012https://zhuanlan.zhihu.com/p/81764012 打开 VS Code 的设置界面 Windows:Ctrl + , 手动格式化 WIndows:Ctlr + Shift + P -> Format Document原创 2021-10-30 21:42:06 · 108 阅读 · 0 评论 -
URL Rewrite Rule in web.config
https://stackoverflow.com/questions/16998832/iis-url-rewrite-rn-clarification https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/url-rewrite-module-configuration-reference#Using_back-references_in_rewrite_rules ^(www.)(.*)$ And using the in原创 2021-10-30 21:10:55 · 201 阅读 · 0 评论