什么原因?
$(function () {
$("#btntest").bind("click", function () {
$("div").toggle(
function(){
$(this).hide();
},
function(){
$(this).show();
}
);
})
});为什么用hide,show不能实现??????
$(function () {
$("#btntest").bind("click", function () {
$("div").toggle(
function(){
$(this).css("color","RGB(255,255,255)");
},
function(){
$(this).css("color","RGB(255,255,155)");
},
function(){
$(this).css("color","RGB(255,255,55)");
}
);
})
});为什么放三个函数就不行呢?????