摘要: 一 操作元素内容 element.innerText // 不识别HTML标签 去除空格和换行 element.innerHtml // 识别HTML标签 保留空格和换行 //这两个属性都是可读写的 indexHtml 和 innerText 的区别 添加纯文本 就用 innerText添加的内容里 阅读全文
posted @ 2021-02-21 09:50 棉花糖88 阅读(56) 评论(0) 推荐(0) 编辑