我在本地建了一个sport.json文件,浏览器运行出来是乱码,求大神解惑
[
{"name":"足球"},
{"name":"篮球"},
{"name":"旅游"},
{"name":"散步"},
{"name":"钓鱼"},
{"name":"游泳"}
]
[
{"name":"足球"},
{"name":"篮球"},
{"name":"旅游"},
{"name":"散步"},
{"name":"钓鱼"},
{"name":"游泳"}
]
2017-02-27
data:{num:$("#txtNumber").val()} 这句话看不太懂! 哪位好心人解释下!
2017-02-27
$.ajaxSetup({
type:'post', success:function(data){
$("ul").append("<li>你输入的<b> "
+ $("#txtNumber").val() + " </b>是<b> "
+ data + " </b></li>");
}
});
type:'post', success:function(data){
$("ul").append("<li>你输入的<b> "
+ $("#txtNumber").val() + " </b>是<b> "
+ data + " </b></li>");
}
});
2017-02-25
$.post('http://www.imooc.com/data/check_f.php',
{num:$('#txtNumber').val()},
{num:$('#txtNumber').val()},
2017-02-24
$.getScript('http://www.imooc.com/data/sport_f.js',function(){
$this.attr("disabled", "true");
})
$this.attr("disabled", "true");
})
2017-02-24
.load('http://www.imooc.com/data/fruit_part.html',function(){
$this.attr("disabled", "true");
})
$this.attr("disabled", "true");
})
2017-02-24