jquery manipulating Dom objects
1.1 Adding and deleting a DOM object dynamically
add : var new object =document.createelemente ("label" ");
$ (Object pre-position parent object). Append (New Object)//Add complete//
Delete : $ (New object). Remove ()//delete complete//
1.2 Dynamic Action Object CSS
Set CSS: $ (object). CSS (' CSS properties ', ' style values ')
Additional tip:
1, about timer operation
var obj= setinerval (function () {operation body, can execute clearinterval (obj) at any time to destroy this timer},time interval)
2. About inter-function objects as parameter passing
$ (object). Click (function () {function (this)})//example: Cashed executed click Actually, an action is performed, the action is to execute a function called function, and the current object as a parameter to pass.
The function is (self) {$ (self). XXX ()} The self is the self content that is passed in
20180503 JQ Learning Record (jquery operation style sheet, time slice, JQ object function Transfer)