- 博客(4)
- 收藏
- 关注
原创 angular中routes的matcher用法
matcher 定义了一个用于路径匹配的自定义策略,指定了它就会代替 path 和 pathMatch。使用如下:export function MonitorMatcher(segments: UrlSegment[], group: UrlSegmentGroup, route: Route) {return (判断)?{consumed: segments, //如果你的...
2018-09-13 10:48:17 1388
原创 angular获取当前地址url
import { PlatformLocation } from '@angular/common';//PlatformLocation 与Location都可以,PlatformLocation 是子集constructor(private location: PlatformLocation) {}for (const i in this.location) { if...
2018-09-05 11:32:42 7967 1
原创 撤销与反撤销
复制粘贴大家基本都会ctrl+c,ctrl+v;常用的撤销快捷键为ctrl+z;常用的反撤销快捷键为ctrl+shift+z或者ctrl+y
2018-09-04 10:15:11 10028
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人