js elements to create three methods

/ * Create --- In order to improve the user experience elements 
* elements created in three ways:
* 1.document.write ( "Code label and contents")
* 2. Object .innerHTML = "label and the code"
* 3 .document.creatElement ( "name tags")
* * /
/ * Method One --document.write Cons: If you are after the page is loaded, and then create an element in this way, 
then the page in the original content will be lost; created when the page loads is no problem * /
// content may be embedded in the code document.write external

Guess you like

Origin www.cnblogs.com/chm-blogs/p/11234169.html