$(function () {
$("#btntest").bind("click mouseout", function () {
$(this).attr("disabled", "true");
})
});
$("#btntest").bind("click mouseout", function () {
$(this).attr("disabled", "true");
})
});
2015-08-08
奇怪了 我把CSS 改成addClass 就不行了!我提前设置好了 .red .green 最后 $(this).addClass("red") $(this).addClass("green") 结果 里面的颜色都是绿色的 没有红色啊!为什么啊
2015-08-08
为什么不能用bind("change",function(){})呢??必须用.change(function(){})??? 求告诉下什么时候用bind啊
2015-08-08
$("body").append($(".red").clone());要记住这个,挺好用的!
2015-08-07
$("li:first++++").css("background-color", "red");
2015-08-07