Implementation code for determining whether child nodes exist
Object.prototype.exist = function(){ if(typeof this !='undefined' && this.length>=1){ return true; } return false;};Not explained.
The above code to determine whether there are child nodes is the entire content shared by the editor. I hope it can give you a reference and I hope you can support Wulin.com more.