chrome devtool 开发者工具 控制台历史、断点历史 导出全部、保存
devtools://devtools/bundled/devtools_app.html
let localStorageObject = {}; // 创建一个空对象
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i); // 获取第 i 个项的键名
const value = localStorage.getItem(key); // 根据键名获取对应的值
localStorageObject[key] = value; // 将键值对添加到对象中
}
copy(localStorageObject);
previouslyViewedFiles
sourcesSearchConfig
xhrBreakpoints
breakpointConditionHistory
consolePins
domBreakpoints
experiments
searchAsYouType
watchExpressions
breakpoints
networkSearchConfig
locallnspectorVersion
consoleHistory
参考
https://stackoverflow.com/questions/13763361/get-console-history
https://stackoverflow.com/questions/51802601/save-export-chromes-javascript-console-input-history