04 2022 档案

摘要:const downloadFile = (herf, downloadName = '') => { const link = document.createElement('a'); const arr = href.split('?')[0].split('/'); fetch(href) . 阅读全文
posted @ 2022-04-22 11:41 玖捌 阅读(444) 评论(0) 推荐(0)
摘要:其中 [img/]代表图片当前的文件夹,[name]表示图片原有的名字[hash:8]哈希算法生成8位的文件名,防止文件名重复[ext]代表着文件名的后缀文件夹后面要加个/,不然会当成字符串处理,作为图片的固定文件名,name,hash,ext要加个[],才能当作变量处理 module: { rul 阅读全文
posted @ 2022-04-13 11:16 玖捌 阅读(115) 评论(0) 推荐(0)
摘要:history 路径传参携带state/query页面不刷新 history.push({ pathname: `/assort/orders/${r.goodsOrderNo}`, search: '?code=l', state: { ...Object(getValues()), }, }); 阅读全文
posted @ 2022-04-13 10:23 玖捌 阅读(1852) 评论(0) 推荐(0)
摘要:// 最初调用函数function submit() { const style = getStyle(); // 需要打印的数据获取innerHTML const container = getContainer(document.querySelector('.next-drawer-body' 阅读全文
posted @ 2022-04-08 19:52 玖捌 阅读(49) 评论(0) 推荐(0)