function display(){
if($("a").html()=="更多"){
$("a").html("简化")
$("li:hidden").attr("style","")
}else{
$("a").html("更多")
$("li[style='']").attr("style","display:none")
}
}
if($("a").html()=="更多"){
$("a").html("简化")
$("li:hidden").attr("style","")
}else{
$("a").html("更多")
$("li[style='']").attr("style","display:none")
}
}
$.get("http://www.imooc.com/data/info_f.php",function(data)
2016-01-07
$.post("http://www.imooc.com/data/check_f.php",{
num: $("#txtNumber").val()
},
num: $("#txtNumber").val()
},
2016-01-07
<script type="text/javascript">
$(function(){
$("div").hover(
function(){
$(this).addClass("orange");
},
function(){
$(this).removeClass("orange")
})
});
</script>
$(function(){
$("div").hover(
function(){
$(this).addClass("orange");
},
function(){
$(this).removeClass("orange")
})
});
</script>
2016-01-07
<script type="text/javascript">
$(function(){
$("#btntest").bind("click mouseout",function(){
$(this).attr("disabled","true");
})
});
<script>
$(function(){
$("#btntest").bind("click mouseout",function(){
$(this).attr("disabled","true");
})
});
<script>
2016-01-07
$(function(){
$("#btntest").bind("click",funciotn(){
$("#tip").html("我被点击了!");
});
});
$("#btntest").bind("click",funciotn(){
$("#tip").html("我被点击了!");
});
});
2016-01-07