![]() A version of slice() taking the length as second argument was implemented in Firefox 4. ![]() However, since that syntax differed from Array.slice() and String.slice(), WebKit removed support and added support for the new syntax as Blob.webkitSlice(). A version of slice() taking the length as second argument was implemented in WebKit and Opera 11.10. ![]() For example, to construct a blob from string: The Blob() constructor allows one to create blobs from other objects. Blob.slice(]]) Returns a new Blob object containing the data in the specified range of bytes of the source Blob. Methods Blob.close() Closes the blob object, possibly freeing underlying resources. If the type is unknown, this string is empty. Blob.type Read only A string indicating the MIME type of the data contained in the Blob. Blob.size Read only The size, in bytes, of the data contained in the Blob object. Properties Blob.isClosed Read only A boolean value, indicating whether the Blob.close() method has been called on the blob. Constructor Blob(blobParts) Returns a newly created Blob object whose content consists of the concatenation of the array of values given in parameter. ![]() The support for blob.mozSlice() has been dropped with Firefox 30. An old version of the slice() method, without vendor prefixes, had different semantics, and is obsolete. Note: Be aware that the slice() method has vendor prefixes on some browsers and versions: blob.mozSlice() for Firefox 12 and earlier and blob.webkitSlice() in Safari. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |