HTML5 Study Notes

Source: Internet
Author: User

Recently in the Lu Linguong teacher's "HTML5 and CSS3 authoritative guide" in the process, found that some of the attributes are obsolete, some of the following summary:

1.IndexedDB database things IDbTransaction two things state:

1) Read-only transaction (IDBTRANSACTION.READ_ONLY)

2) Read and write Things (Dbtransaction.read_write)

In real-world development, if such a call is incorrect, for example:

var tx=idb.transaction ([storename],idbtransaction.read_only) or

var tx=idb.transaction ([Storename],idbtransaction.read_write)

The correct wording:

var tx=idb.transaction ([StoreName], "readonly") or

var tx=idb.transaction ([StoreName], "ReadWrite")

2.BlobBuilder object is deprecated

var obuilder = new Blobbuilder () var afileparts = ["<a id=\" a\ "><b id=\" b\ ">hey!<\/b><\/a>"];o Builder.append (Afileparts[0]); var omyblob = Obuilder.getblob ("Text\/xml"); The Blob
Can be written like this:

var afileparts = ["<a id=\" a\ "><b id=\" b\ ">hey!<\/b><\/a>"];var Omyblob = new Blob (Afileparts, { "Type": "Text\/xml"}); The Blob
More information can be queried: Blob



HTML5 Study Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.