jQuery hasClass() 方法jQuery HTML/CSS 方法实例检查<p> 元素是否包含'intro' 类: $('button').click(function(){ alert($('p').hasClass('intro')); }); 尝试一下» ...
確定! 回上一頁