StorageAccessHandle: createObjectURL() Methode
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Hinweis:
Siehe createObjectURL()
, um die Verwendung zu verstehen.
Syntax
js
createObjectURL(object)
Parameter
object
-
Siehe
createObjectURL()
.
Rückgabewert
Ein String, der eine nicht partitionierte Objekt-URL enthält, die verwendet werden kann, um auf den Inhalt des angegebenen Quell-object
zu verweisen.
Ausnahmen
SecurityError
DomException
-
Wird ausgelöst, wenn der Zugriff nicht gewährt wurde.
Siehe createObjectURL()
Beispiele
js
document.requestStorageAccess({ createObjectURL: true }).then(
(handle) => {
console.log("createObjectURL access granted");
handle.createObjectURL(new Blob(["foo"]));
},
() => {
console.log("createObjectURL access denied");
},
);
Hinweis: Siehe Verwendung der Storage Access API für ein vollständigeres Beispiel.
Spezifikationen
Specification |
---|
Extending Storage Access API (SAA) to non-cookie storage # ref-for-dom-storageaccesshandle-createobjecturl |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
createObjectURL |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.