$(function () {
$("#x").draggable({containment:"parent",axis:"x"});
$("#y").draggable({containment:"parent",axis:"y"});
});
$("#x").draggable({containment:"parent",axis:"x"});
$("#y").draggable({containment:"parent",axis:"y"});
});
2017-11-13
$("#btnCount").bind("click", function () {
$("#Text3").val(
$.subNum(parseInt($("#Text1").val()),parseInt($("#Text2").val()))
);
});
$("#Text3").val(
$.subNum(parseInt($("#Text1").val()),parseInt($("#Text2").val()))
);
});
2017-11-13
<script>
var jsonStu =[{"name":"小赵","score":80},{"name":"小钱","score":87},{"name":"小孙","score":97}];
$.each(jsonStu,function(index,student){
$("#list").append("<li>姓名:"+student["name"]+" 分數:"+student["score"]+"</li>");
});
</script>
var jsonStu =[{"name":"小赵","score":80},{"name":"小钱","score":87},{"name":"小孙","score":97}];
$.each(jsonStu,function(index,student){
$("#list").append("<li>姓名:"+student["name"]+" 分數:"+student["score"]+"</li>");
});
</script>
$.ajaxSetup({
type:"POST",
success: function (data) {
type:"POST",
success: function (data) {
2017-11-13
$.getScript("http://www.imooc.com/data/sport_f.js",function ()
2017-11-12
可以看这两篇:http://www.cnblogs.com/ajianbeyourself/p/5815689.html 和 http://www.cnblogs.com/xcj26/p/3345556.html
$.subNum( $("#Text1").val(), $("#Text2").val() ) 不要加分号,简直……
2017-11-06
你在邮箱填好,点击保存,设置,刷新页面,之前在邮箱的输入框填好的文本还在就是成功了,当然看不到内容的时候记得提交代码。
2017-11-06
记得要先引jQuery啊, <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>