Loading

摘要: /** * 关闭浏览器窗口 */ export const closeWindow = () => { var userAgent = navigator.userAgent if (userAgent.indexOf('Firefox') !== -1 || userAgent.indexOf(' 阅读全文
posted @ 2021-08-03 10:07 Frank-Link 阅读(2818) 评论(0) 推荐(0) 编辑
摘要: /** * 下载blob数据 * @param {object} res blob数据下载的响应头 * @param {String} fileName 文件名,可选 */ export function downloadBlobData (res, fileName) { const fileNa 阅读全文
posted @ 2021-08-03 10:04 Frank-Link 阅读(322) 评论(0) 推荐(0) 编辑
摘要: /** * 获取指定的cookie * @param {String} key cookie的key * @returns {String} */ export function getCookie(key) { const cookie = document.cookie.split(';') f 阅读全文
posted @ 2021-08-03 09:58 Frank-Link 阅读(396) 评论(0) 推荐(0) 编辑
摘要: /** * 通过url地址下载数据 * @param {String} url 资源下载路径 * @param {String} name 资源文件名称 */ export function exportFileByUrl(url, name) { const a = document.create 阅读全文
posted @ 2021-08-03 09:50 Frank-Link 阅读(1077) 评论(0) 推荐(0) 编辑