E杂苑
让知识各归其位
Toggle navigation
E杂苑
主页
E记忆
历史博文
标签
chrome调试导出内容为文件
2023-06-07 14:57:34
73
0
0
eric
1. 在控制台添加函数 (function(console){ console.save = function(data, filename){ if(!data) { console.error('Console.save: No data') return; } if(!filename) filename = 'console.json' var blob = new Blob([data], {type: 'text/json'}), e = document.createEvent('MouseEvents'), a = document.createElement('a') a.download = filename a.href = window.URL.createObjectURL(blob) a.dataset.downloadurl = ['text/json', a.download, a.href].join(':') e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null) a.dispatchEvent(e) } })(console) 2. 执行导出 console(temp1,1.txt)
Pre:
ubuntu 安装code-server
Next:
rclone挂载oracle cloud存储
0
likes
73
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Table of content