摘要: const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> <ul> <li>1</li> </ul> `; const ul = app.querySelector('ul'); ul. 阅读全文
posted @ 2020-03-21 20:43 Zhentiw 阅读(165) 评论(0) 推荐(0)
摘要: const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> `; const div = document.createElement('div'); const span = docum 阅读全文
posted @ 2020-03-21 20:37 Zhentiw 阅读(175) 评论(0) 推荐(0)