lib/tethys.js
function(cls){
        var has = false, reg = new RegExp('\\b' + cls + '\\b');

        this.each(function(el){
            has = has || !!el.className.match(reg);
        });
        
        return has;
    }
function(cls){
        var has = false, reg = new RegExp('\\b' + cls + '\\b');

        this.each(function(el){
            has = has || !!el.className.match(reg);
        });
        
        return has;
    }
function ( cls ) { var has = false , reg = new RegExp ( '\\b' + cls + '\\b' ) ; this . each ( function ( el ) { has = has || ! ! el . className . match ( reg ) ; } ) ; return has ; }
检查是否有class
检查是否有class