$("span").delay(2000);
$("#tip").html("正在延时!");
});
$("#tip").html("正在延时!");
});
2015-05-27
$("#btnStop").bind("click", function () {
$("span").stop();
$("#tip").html("执行停止!");
$("span").stop();
$("#tip").html("执行停止!");
2015-05-27
$(function () {
$("span").animate({
left: "+=100px"
}, 3000, function () {
$("span").animate({
$("span").animate({
left: "+=100px"
}, 3000, function () {
$("span").animate({
2015-05-27
$(".red").fadeTo(3000,0.2);
break;
case 1:
$(".orange").fadeTo(3000,0.2);
break;
case 2:
$(".blue").fadeTo(3000,0.2);
break;
}
break;
case 1:
$(".orange").fadeTo(3000,0.2);
break;
case 2:
$(".blue").fadeTo(3000,0.2);
break;
}
2015-05-27
<script type="text/javascript">
var stifo=[{"name":"小忆",score:"80"},{"name":"小二",score:"85"}];
$.each(stifo,function(index){
$("ul").append("<li>" + stifo[index].name +stifo[index].score +"</li>");
});
</script>
var stifo=[{"name":"小忆",score:"80"},{"name":"小二",score:"85"}];
$.each(stifo,function(index){
$("ul").append("<li>" + stifo[index].name +stifo[index].score +"</li>");
});
</script>
$("p+label").css("background-color","red");
2015-05-27
$("div>label").css("border", "solid 5px red");
2015-05-27