JS中动态创建元素的三种方法总结(推荐) 1、动态创建元素一 document write() 例如向页面中输出一个 li 标签 <pre class="html" name="code"><spa JavaScript 2022-04-11 238 点赞 3 评论 360 浏览