会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
tianqiZhang
2019年9月3日
js导出不规则表格/form类表格
摘要: window.tableToExcel = (function() { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:ex
阅读全文
posted @ 2019-09-03 09:33 tianqiZhang
阅读(328)
评论(0)
推荐(0)
编辑
深拷贝target为数组或者对象
摘要: cloneTarget(target, map = new WeakMap()) { if (typeof target 'object') { const isArray = Array.isArray(target); let cloneTarget = isArray ? [] : {}; if (map.get(target)) { return map.get(target); } ma
阅读全文
posted @ 2019-09-03 09:31 tianqiZhang
阅读(231)
评论(0)
推荐(0)
编辑
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理