摘要:
用了 viewjs 预览图片的时候 发现 用着两个 还是有区别的, 相同点 v-if与v-show都可以动态控制dom元素显示隐藏 不同点 = v-if显示隐藏是将dom元素整个添加或删除,而v-show隐藏则是为该元素添加css--display:none,dom元素还在。 1.手段:v-if是动 阅读全文
posted @ 2019-06-19 17:30
拈花醉
阅读(224)
评论(0)
推荐(0)
摘要:
window.open(url) get 请求 导出文件 阅读全文
posted @ 2019-06-19 16:48
拈花醉
阅读(3032)
评论(0)
推荐(0)
摘要:
*上传图片: x 报表图片 getFile () { document.getElementById('pfile').click() }, getPhoto () { let... 阅读全文
posted @ 2019-06-19 16:26
拈花醉
阅读(253)
评论(0)
推荐(0)
摘要:
// 下载图片 downPhoto (path) { this.downloadFiles(path) }, // 下载 downloadFiles (content) { console.log(content) const downloadElement = document.createEle... 阅读全文
posted @ 2019-06-19 15:41
拈花醉
阅读(2554)
评论(0)
推荐(0)