Data URLs

`

data:[][;base64],

`The mediatype is a MIME type string, such as ‘image/jpeg’ for a JPEG image file. If omitted, defaults to text/plain;charset=US-ASCII If the data is textual, you can simply embed the text (using the appropriate entities or escapes based on the enclosing document’s type). Otherwise, you can specify base64 to embed base64-encoded binary data. 参考资料: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics\_of\_HTTP/Data\_URIs https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64\_encoding\_and\_decoding


Data URLs
http://example.com/2017-08-07 data-urls/
作者
csorz
发布于
2017年8月7日
许可协议