<script type="text/javascript">
$("li").hide();
$("li:gt(-6)").show();
$("a").click(function(){
if($("a").html()=="更多"){
$("li").show();
$("a").html("简化");
}
else{
$("li").hide();
$("li:gt(-6)").show();
$("a").html("更多");
}})
</script>
$("li").hide();
$("li:gt(-6)").show();
$("a").click(function(){
if($("a").html()=="更多"){
$("li").show();
$("a").html("简化");
}
else{
$("li").hide();
$("li:gt(-6)").show();
$("a").html("更多");
}})
</script>
$(function () {
var intI = 0;
$("div").one("click", function () {
intI++;
$(this).css("font-size", intI + "px");
})
});
var intI = 0;
$("div").one("click", function () {
intI++;
$(this).css("font-size", intI + "px");
})
});
2015-12-05
$("#btntest").bind("click", function () {
$("div").unbind("click dblclick");
$(this).attr("disabled", "true");
});
$("div").unbind("click dblclick");
$(this).attr("disabled", "true");
});
2015-12-05
<script>
$("li:gt(3):not(:last)").hide();
$("a").click(function(){
var a = $("a").html();
if (a == "更多") {
$("li").show();
$("a").html("简化");
}else{
$("li:gt(3):not(:last)").hide();
$("a").html("更多");
};
});
</script>
$("li:gt(3):not(:last)").hide();
$("a").click(function(){
var a = $("a").html();
if (a == "更多") {
$("li").show();
$("a").html("简化");
}else{
$("li:gt(3):not(:last)").hide();
$("a").html("更多");
};
});
</script>
<script type="text/javascript">
$(document).ready(function(){
var li_show=$("li:gt(3)").not(:last);
li_show.hide();
$("a").click(function(){
var a_show=$("a").html();
if (a_show=="更多"){
$(this).html("简化");
li_show.show();}
else{
$(this).html("更多");
li_show.hide();
} } );})
</script>
$(document).ready(function(){
var li_show=$("li:gt(3)").not(:last);
li_show.hide();
$("a").click(function(){
var a_show=$("a").html();
if (a_show=="更多"){
$(this).html("简化");
li_show.show();}
else{
$(this).html("更多");
li_show.hide();
} } );})
</script>
<script type="text/javascript">
$(function () {
$("#btntest").on("click", function () {
$("div").toggle(1000)
})
});
</script>
$(function () {
$("#btntest").on("click", function () {
$("div").toggle(1000)
})
});
</script>
2015-12-05