First: via text/HTML var txt1="<h1>Text.</h1>"; Second: Through jQuery var txt2=$("<h2></h2>").text("Text."); The third method: through JavaScript/DOM var txt3 = document.createElement("h3"); The above summary of three methods of creating new elements is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. Original URL: http://www.cnblogs.com/SoYang/p/5677589.html |
<<: Solution to Navicat Premier remote connection to MySQL error 10038
>>: ReactHooks batch update state and get route parameters example analysis
The inline-block property value becomes very usef...
Margin of parallel boxes (overlap of double margi...
Phenomenon When using Apache Spark 2.x, you may e...
1. Install and start nginx # Install nginx sudo a...
1. Pull the official 5.0.3 image [root@localhost ...
1. Font properties color, specifies the color of ...
Here is a single-line layout using ul>li for l...
When processing batch updates of certain data, if...
This article example shares the specific code of ...
background The Agile model is widely used, and te...
The use of ElementUI paging component Pagination ...
Table of contents 1. switch 2. While Loop 3. Do/W...
MySQL 5.7.9 version sql_mode=only_full_group_by i...
A web server can build multiple web sites with in...
What are HTTP Headers HTTP is an abbreviation of ...