# 2015年11月19日

## javascript

### 创建DOM元素

```javascript
var oLi=document.createElement("li");

 oUl.appendChild(oLi);//插入到最后；
```

`createElement(标签名）`：创建一个节点 `appendChild(节点）`：追加一个节点

`insertBefore(节点，原有节点）`：在已有元素前插入；

### 表格

getElementsByTagName("tbody")\[0] : tBodies\[0] getElementsByTagName("tr")\[0] : rows\[0] getElementsByTagName("td") : cells\[0]


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://note.niefee.com/summary-1/11/2015-nian-11-yue-19-ri.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
