Home > Web Front-end > JS Tutorial > body text

A tag function that can add multiple sequences at will_javascript skills

WBOY
Release: 2016-05-16 18:49:37
Original
1286 people have browsed it

/**
* @author Supersha
* @QQ:770104121
*/
Because this code was written without planning, it was relatively rough and no comments were added.
Main features: JavaScript code and HTML are completely separated; you can add multiple sub-div tags at will and automatically expand
JavaScript code:

Copy code The code is as follows:




HTML code:
Copy code The code is as follows:



< p>
Tag demo 1,
I will achive it.





Tag demo 2,
I will achive it.



< ;div>


Tag demo 3,
I will achive it.





Tag demo 4,
I will achive it.


< ;/div>


Tag demo 5,
I will achive it.





Tag demo 6,
I will achive it.
< ;/p>




Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!