03 2020 档案
摘要:; (function () { // 调用私有方法,获取transform var transform = getTransform(); function Drag(selector) { this.elem = typeof selector 'object' ? selector : doc
阅读全文
摘要:Ie浏览器下,有时候获取到的window.location.origin为undefined,需要兼容 let origin: any; if (!window.location.origin) { origin = window.location.protocol + '//' + window.
阅读全文
摘要:<div></div> //css div{ width:50px; height:50px; outline:20px solid; outline-offset:-42px } 效果
阅读全文
摘要:// 复制链接 copyLinkHandler() { const input = document.querySelector('#private-link-code'); input.value = this.copyLinkTxt; // 选中赋值过的input input.select();
阅读全文
摘要:1.安装命令 npm install ngx-clipboard 2.在当前所需组件的module中引入ClipboardModule; 3.在组件中使用
阅读全文
摘要:1.新建filesize管道 import {Pipe, PipeTransform} from '@angular/core'; @Pipe({ name: 'fileSizeFormat' }) export class FileSizeFormatPipe implements PipeTra
阅读全文
摘要:1.新建pipe 文件 import {Pipe, PipeTransform} from '@angular/core'; import {DomSanitizer} from '@angular/platform-browser'; @Pipe({ name: 'htmlReset' }) ex
阅读全文

浙公网安备 33010602011771号