最赞回答 / 慕婉清7878123
"$.ajaxSetup(function(){ "你这里写错了, $,ajaxSetup()里是一个对象用{ }符号就行了,不需要函数,你的success函数里也没有传数据,需要添加data:success:function(data){ }<...code...>
2017-10-14
最新回答 / 牵着羊儿去放牛
将网址:https://www.imooc.com/code/13474 换成 http://www.imooc.com/code/13474 访问
2017-10-14
<ol id="list"></ol>
//引入jquery
<script>
$(function(){
var data = [{"name":"xiaoming","age":"12"},{"name":"dabao","age":"13"},];
$.each(data,function(index,data){
$("#list").append("<li>姓名:" +data["name"] + "年龄:" + data.age+"</li>" });
});
</script>
//引入jquery
<script>
$(function(){
var data = [{"name":"xiaoming","age":"12"},{"name":"dabao","age":"13"},];
$.each(data,function(index,data){
$("#list").append("<li>姓名:" +data["name"] + "年龄:" + data.age+"</li>" });
});
</script>
已采纳回答 / 慕田峪5302042
$.get("http://www.imooc.com/data/info_f.php",function(data){ $this.attr("disabled", "true"); $("ul").append("<li>我的名字叫:" + data.name + "</li>"); $("ul").append("<li>男朋...
2017-10-07
告诉各位一个好消息http://www.imooc.com/data/check_f.php进去看看源码,就只有等于0
2017-10-06
$this.attr("disabled", "true");
2017-10-06