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