欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

一个可以随意添加多个序列的tag函数_javascript技巧

程序员文章站 2022-06-14 08:30:18
...
/**
* @author Supersha
* @QQ:770104121
*/
由于在没有规划好的情况下写的这个代码,写的比较粗糙,也没有添加注释。
主要特点:JavaScript代码和HTML完全分离;可以随意添加多个子div标签,自动扩展
JavaScript代码:
复制代码 代码如下:




HTML代码:
复制代码 代码如下:




Tag demo 1,
I will achive it.





Tag demo 2,
I will achive it.





Tag demo 3,
I will achive it.





Tag demo 4,
I will achive it.





Tag demo 5,
I will achive it.





Tag demo 6,
I will achive it.





相关标签: 多序列 tag函数