- 博客(3)
- 收藏
- 关注
原创 Blod对象下载文件
fileDownload(url, fileName, fileType) { if('download' in document.createElement('a')){ let blob = new Blob([url], { type: url.type }) var downloadElement = document.createElement('a') var href =...
2020-06-16 15:09:27
938
原创 万恶的兼容
万恶的兼容,万恶的苹果 谨以此记录被苹果兼容整死的半个下午 var times = new Date(time.replace(/-/g, '/')).getTime()
2020-02-15 20:22:27
227
原创 ES6 map注意事项
ES6 map vue中 箭头函数中使用map的thisValue回调函数this指向的是Vue中的this,如果要使用map的回调就得直接声明function函数不得使用ES6 this.tableData.map((item, index, val) => { console.log(this) },{a:1}) //返回 vue 中的this指向 this.table...
2019-12-11 17:55:30
201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人