翻譯不完整。請協助 翻譯此英文文件

The WindowBase64 helper contains utility methods to convert data to and from base64, a binary-to-text encoding scheme. For example it is used in data URIs.

There is no object of this type, though the context object, either the Window for regular browsing scope, or the WorkerGlobalScope  for workers, implements it.

屬性

This helper neither defines nor inherits any properties.

方法

This helper does not inherit any methods.

WindowBase64.atob()
Decodes a string of data which has been encoded using base-64 encoding.
WindowBase64.btoa()
Creates a base-64 encoded ASCII string from a string of binary data.

規範

Specification Status Comment
HTML Living Standard
The definition of 'WindowBase64' in that specification.
Living Standard No change since the latest snapshot, HTML 5.1.
HTML 5.1
The definition of 'WindowBase64' in that specification.
Recommendation Snapshot of HTML Living Standard. No change.
HTML5
The definition of 'WindowBase64' in that specification.
Recommendation Snapshot of HTML Living Standard. Creation of WindowBase64 (properties where on the target before it).

瀏覽器相容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 1.0 (1.7 or earlier) [1] (Yes) 10.0 (Yes) (Yes)
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support 1.0 (1) (Yes) (Yes) (Yes) (Yes)

[1]  atob() is also available to XPCOM components implemented in JavaScript, even though Window is not the global object in components.

參見

文件標籤與貢獻者

此頁面的貢獻者: jackblackevo
最近更新: jackblackevo,