Home  >  Article  >  Web Front-end  >  A tag function that can add multiple sequences at will_javascript skills

A tag function that can add multiple sequences at will_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:49:371271browse

/**
* @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>




Statement:
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