Js native additions and deletions to change search bom

### Inquire

  + Document.querySelector ( '.class / ID # / Li') [obtained according to the selector (class name, id, tag name) node can acquire a, returns a node  ]

  +  Document.querySelectorAll ( '.class / ID # / Li') [obtained according to the selector (class name, id, tag name) node, retrieves all, returns an array  ]

 

### modified

  + Ele.innerHTML = '<h1> hello word <h1>' [innerHTML This property analysis values of labels, typically used to dynamically generate  ]

  + Ele.innerTEXT = 'hello word' [innerTEXT this property only resolves to a string, with very little]

 

### increase

  + 

Guess you like

Origin www.cnblogs.com/jiazhifeng/p/11241076.html