# chrome.history 库模块帮助文档

## chrome.history 成员列表 <a id="chrome.history" href="#chrome.history">&#x23;</a>

### chrome.history.clear() <a id="chrome.history.clear" href="#chrome.history.clear">&#x23;</a>
清空 Chrome 或 Edge 历史记录数据表,可选在参数中指定配置名,  
需要事先关闭chrome

### chrome.history.get() <a id="chrome.history.get" href="#chrome.history.get">&#x23;</a>
返回 Chrome 或 Edge 历史记录数据表,可选在参数中指定配置名

### chrome.history.open() <a id="chrome.history.open" href="#chrome.history.open">&#x23;</a>
打开 Chrome 或 Edge 历史记录数据库,可选在参数中指定配置名  

[返回对象:sqliteConnObject](#sqliteConnObject)

### chrome.history.readOnly(true) <a id="chrome.history.readOnly" href="#chrome.history.readOnly">&#x23;</a>
参数 @1 设置是否历史记录数据表只读,  
参数为 true 会同时清空数据,  
可选在参数@2中指定配置名
