摘要: ngFor ngForOf指令通常使用缩写形式*ngFor为集合中的每个项呈现模板的结构指令。该指令放置在元素上,该元素将成为克隆模板的父级。 <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li> 一般使用是: 阅读全文
posted @ 2019-12-04 11:45 秦笑 阅读(2701) 评论(0) 推荐(0)
摘要: 原文链接:https://blog.csdn.net/usuallyuser/article/details/83060341 accept="application/msexcel,application/msword,application/pdf" <input type="file" acc 阅读全文
posted @ 2019-12-03 16:17 秦笑 阅读(1838) 评论(0) 推荐(0)
摘要: js-xlsx 官方文档:https://sheetjs.gitbooks.io/docs/#sheetjs-js-xlsx npm xlsx地址:https://www.npmjs.com/package/xlsx 官网:https://sheetjs.com/opensource 首先进行安装或 阅读全文
posted @ 2019-12-02 15:19 秦笑 阅读(26987) 评论(0) 推荐(3)
摘要: find(); find() 方法返回通过测试(函数内判断)的数组的第一个元素的值。 find() 方法为数组中的每个元素都调用一次函数执行: 当数组中的元素在测试条件时返回 true 时, find() 返回符合条件的元素,之后的值不会再调用执行函数。 如果没有符合条件的元素返回 undefine 阅读全文
posted @ 2019-11-29 10:15 秦笑 阅读(8254) 评论(0) 推荐(0)
摘要: angular: 使用 echarts npm install echarts --save // 安装declare const echarts: any; // 引入https://www.echartsjs.com/zh/index.html // 使用 angular 生成二维码# Angu 阅读全文
posted @ 2019-11-28 15:16 秦笑 阅读(189) 评论(0) 推荐(0)
摘要: 强制不换行: white-space:nowrap;、 自动换行: word-wrap:break-word; 强制英文单词换行: word-break:break-all; 超出显示省略号: overflow: hidden; text-overflow:ellipsis; white-space 阅读全文
posted @ 2019-11-28 15:12 秦笑 阅读(245) 评论(0) 推荐(0)