创建完节点后,还要使用 appendChild() 或 insertBefore() 将创建的节点插入到DOM的指定位置。 ... setAttribute('class', 'alerts'); childNode.
確定! 回上一頁