判断是否存在子节点

Object.prototype.exist = function(){
    if(typeof this !='undefined' && this.length>=1){
        return true;
    }
    return false;
};
 
 
不解释
posted @ 2016-05-17 22:51  有礼貌的Wu  阅读(376)  评论(2)    收藏  举报