最赞回答 / 慕工程7806118
因为<script type="text/javascript"> $("ol:last-child").css("background-color", "blue");</script>也算<body>的子元素,所以ol不是<body>的last-child如果把<script type="text/javascript">放到<head>里,$("ol:last-child").css("background-co...
2014-12-22
最新回答 / 憨豆公子
$(function () { $("#btnShow").bind("click", function () { var $this = $(this); $.getScript("http://www.imooc.com/data/sport_f.js",function(){ $this.attr("disabled", "true"); ...
2014-12-22
drop: function () {
$(this).addClass('focus').find('#tip').html('有产品了');
$(this).addClass('focus').find('#tip').html('有产品了');
2014-12-22
$("#x").draggable({containment: "parent",axis: "x"});
$("#y").draggable({containment: "parent",axis: "y"});
$("#y").draggable({containment: "parent",axis: "y"});
2014-12-22
$("#Text3").val(
$.subNum($("#Text1").val(),$("#Text2").val()
$.subNum($("#Text1").val(),$("#Text2").val()
2014-12-22