随笔分类 -  angular

摘要:... <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script> <style> #h 阅读全文
posted @ 2022-01-21 15:14 voh99800 阅读(15) 评论(0) 推荐(0) 编辑
摘要:/// 1, 父组件 > 子组件 子组件 @input get {} set {} 的意义是希望子组件收到参数进行一些处理后,再展示; 2,子组件监听父组件值变化 // 子组件实现ngOnchanges实现监听父组件传值变化 @Input() major: number; @Input() mino 阅读全文
posted @ 2021-05-28 22:26 voh99800 阅读(39) 评论(0) 推荐(0) 编辑
摘要:... 参考 https://juejin.cn/post/6844904165181751304 https://www.jianshu.com/p/52500abbed5c?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes& 阅读全文
posted @ 2021-05-27 17:58 voh99800 阅读(88) 评论(0) 推荐(0) 编辑
摘要:... html <d-button (btnClick)="HuGet()">huzh Get</d-button> <h5 class="text-muted">Standard: Single Select</h5> <div class="row"> <div class="col-md-5 阅读全文
posted @ 2021-05-25 23:46 voh99800 阅读(248) 评论(0) 推荐(0) 编辑
摘要:... for 循环之前需要初始化被赋值的对象,否则每次被赋值的是同一个对象,而且是这个对象最后一次被赋值的情况 参考 https://blog.csdn.net/qq_38758765/article/details/115749097 HuDerr(): void{ this.data3.dat 阅读全文
posted @ 2021-05-21 23:54 voh99800 阅读(134) 评论(0) 推荐(0) 编辑
摘要:... from https://www.jianshu.com/p/b81a5ad72641 import { Component } from '@angular/core'; import {Observable, fromEvent, from, of, interval} from 'rx 阅读全文
posted @ 2021-03-28 23:09 voh99800 阅读(37) 评论(0) 推荐(0) 编辑
摘要:... https://angular.cn/guide/observables keydown example import { Component } from '@angular/core'; import { Observable, fromEvent } from 'rxjs'; @Com 阅读全文
posted @ 2021-03-28 02:45 voh99800 阅读(142) 评论(0) 推荐(0) 编辑
摘要:...占位 component ts 1 import {Component, OnInit} from '@angular/core'; 2 3 import { HttpClient, HttpHeaders } from '@angular/common/http'; 4 import { O 阅读全文
posted @ 2021-03-25 23:38 voh99800 阅读(23) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示