$(document).ready(function(){
$("button").click(function(){
$(this).css({"color":"red","border":"2px solid red"});
});
});
$(this) 只能放到 ( d o c u m e n t ) 中 , 否 则 系 统 不 知 道 (document){}中,否则系统不知道 (document)中,否则系统不知道(this)是什么意思
$(document).ready(function(){
$("button").click(function(){
$(this).css({"color":"red","border":"2px solid red"});
});
});
$(this) 只能放到 ( d o c u m e n t ) 中 , 否 则 系 统 不 知 道 (document){}中,否则系统不知道 (document)中,否则系统不知道(this)是什么意思