document.createElement()
DOM 节点装配台
输入待办项后,浏览器会创建一个新的
li
,把文本节点和删除按钮插进去,再挂到列表末尾。
li + text + button
待办内容
插入 li
待办列表
0 items
当前执行步骤
等待输入,准备创建节点。