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
Preface When developing static pages, such as Vue...
Look at the code first Copy code The code is as fo...
Table of contents 1. Error message 2. Cause of er...
Table of contents background Problem location Fur...
I encountered this problem today. I reassigned the...
Table of contents What is the Linux system that w...
Table of contents Preface Front-end structure Bac...
Using Nginx's proxy_cache to build a cache se...
1. Set CORS response header to achieve cross-doma...
NodeJS copies the files: Generally, the copy oper...
Table of contents Install sakila Index Scan Sort ...
There is no data directory, my-default.ini and my...
Install nginx Note that you must install nginx-fu...
Table of contents 1. Unzip 2. Create a data folde...
#!/bin/bash #Download SVN yum -y install subversi...