上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: <div class="panel-body justify-content-between d-flex"> <div *ngIf="qrString"> <qrcode [qrdata]="qrString" [size]="150" [level]="'M'" [attr.title]="'' 阅读全文
posted @ 2020-11-24 13:34 jahoon 阅读(84) 评论(0) 推荐(0)
摘要: 在angular中有一个核心module叫app.module,但是如果我们把所有的东西都放在app.module里面就不好维护,所以我们可以建立多个module来管理不同的模块 例如,我们可以建立一个share.module来管理所有的公共模块,然后再app.module中导入share.modu 阅读全文
posted @ 2020-11-22 11:51 jahoon 阅读(163) 评论(0) 推荐(0)
摘要: this.router.events .pipe( filter(event => event instanceof NavigationEnd), map(() => this.activatedRoute), map(route => { while (route.firstChild) rou 阅读全文
posted @ 2020-11-16 15:23 jahoon 阅读(109) 评论(0) 推荐(0)
摘要: 图表插件:@syncfusion/ej2-ng-charts https://ej2.syncfusion.com/angular/demos/?spm=a2c6h.14275010.0.0.b55f635eLHfqmb#/material/chart/line 阅读全文
posted @ 2020-11-12 15:13 jahoon 阅读(116) 评论(0) 推荐(0)
摘要: 在angular中有一个核心module叫app.module,但是如果我们把所有的东西都放在app.module里面就不好维护,所以我们可以建立多个module来管理不同的模块 例如,我们可以建立一个share.module来管理所有的公共模块,然后再app.module中导入share.modu 阅读全文
posted @ 2020-11-12 15:06 jahoon 阅读(73) 评论(0) 推荐(0)
摘要: 1、网址正则: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/ https://blog.csdn.net/a66666_/article/details/84587512 阅读全文
posted @ 2020-11-06 13:01 jahoon 阅读(66) 评论(0) 推荐(0)
摘要: p{ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; } 然后在行内样式中添加如下: <p style="-webkit-box-orient: vertical;">te 阅读全文
posted @ 2020-11-05 15:46 jahoon 阅读(49) 评论(0) 推荐(0)
摘要: 基本用法 import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` <button type="button" class="btn btn-primary" (click)=" 阅读全文
posted @ 2020-10-11 15:18 jahoon 阅读(120) 评论(0) 推荐(0)
摘要: 创建组件的命令 ng generate component <组件名> [options] 简写:ng g c <组件名> [options] eg: ng g c comp1 (在src/app下创建名为comp1的组件) ng g c components/comp1 (在src/app/com 阅读全文
posted @ 2020-10-11 14:53 jahoon 阅读(67) 评论(0) 推荐(0)
摘要: 绑定图片 import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` <img src="../assets/images/madao.jpg" alt="madao" /> <i 阅读全文
posted @ 2020-10-11 14:47 jahoon 阅读(122) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页