expand id 展開節(jié)點。 collapseAll id 折疊所有的節(jié)點。 expandAll id 展開所有的節(jié)點。 expandTo id 從根部展開一個指定的節(jié)點。 toggle id 切換節(jié)點的展開/折疊狀態(tài)。 append param 追加一些子節(jié)點到一個父節(jié)點,'param' 參數包括下列屬性: parent:父節(jié)點的 id,如果沒有分配,則追加為根節(jié)點。 data:數組,節(jié)點的...
This example creates a range from the current selection and uses the expand method to ensure that any word partially enclosed in the range becomes entirely enclosed in the range. var rng = document.selection.createRange(); rng.expand("word"); ...