jQuery tag contains content actions
Tags contain content operations
Use javascript operations:
dvnode.innerHTML Get the information contained in the div
dvnode.innerHTML = XXX; Set the content contained in the div
Note: innerHTML is not a w3c standard technology , many browsers only support it
Use jquery operation:
- ##$().html(); // Get the information contained in the node
- $().html(information); //Set the content contained in the node
- $().text (); //Get the "text string information" content contained in the node
- $().text(information); //Set the content contained in the node (if there is an html tag, just The "><" symbol becomes a symbol entity)
php.cn 欢迎大家 学习jQuery
##The difference between html() and text() methods :
##① Get content