browsingData.DataTypeSet
type describes a set of data types.
It contains a number of boolean properties. The name of each property is the name of a particular type of browsing data: "downloads", "history" and so on. All properties are optional.
This type is used:
browsingData.remove()
to describe which data types to remove
browsingData.settings()
to describe which data types are currently selected in the browser's "Clear History" feature.
Values of this type are objects. They contain the following properties:
cache
可选
boolean
. The browser's cache.
Cookie
可选
boolean
. Cookies acquired while browsing.
downloads
可选
boolean
. The user's download history.
fileSystems
可选
boolean
. Website's file systems.
formData
可选
boolean
. Saved form data, for autocomplete.
history
可选
boolean
. The user's browsing history.
indexedDB
可选
boolean
. IndexedDB data.
localStorage
可选
boolean
. Local storage data.
passwords
可选
boolean
. Saved passwords, for autocomplete.
pluginData
可选
boolean
. Stored data associated with plugins.
serverBoundCertificates
可选
boolean
. Stored server-bound certificates.
serviceWorkers
可选
boolean
. Data cached by service workers.
BCD tables only load in the browser
注意:
This API is based on Chromium's
chrome.browsingData
API。
Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
最后修改: , 由 MDN 贡献者