jquery是否存在class的方法:1、使用【is(‘.classname’)】的方法;2、使用【hasClass(‘classname’)】的方法,代码为【$('div').hasClass('redColor')】。
技术文章 / 下载软件趣味内容 / 专业带飞