http://www.xianlaiwan.cn/data/check_f.php 這個php的文件,只有一句話“等于0”,這是在逗我們么
2017-02-15
json數據格式
[
{ "name": "跑步"},
{ "name": "爬山"},
{ "name": "游泳"}
]
[
{ "name": "跑步"},
{ "name": "爬山"},
{ "name": "游泳"}
]
2017-02-14
看我的結果,誰的輸入任何數字都是0??
你輸入的 4 是 大于0
你輸入的 -7 是 小于0
你輸入的 0 是 等于0
你輸入的 4 是 大于0
你輸入的 -7 是 小于0
你輸入的 0 是 等于0
2017-02-14
這是js文件內容
var data = [{
"name": "足球"
}, {
"name": "散步"
}, {
"name": "籃球"
}, {
"name": "乒乓球"
}, {
"name": "騎自行車"
}];
$.each(data, function (index, sport) {
if (index == 1)
$("ul").append("<li>" + sport["name"] + "</li>");
});
var data = [{
"name": "足球"
}, {
"name": "散步"
}, {
"name": "籃球"
}, {
"name": "乒乓球"
}, {
"name": "騎自行車"
}];
$.each(data, function (index, sport) {
if (index == 1)
$("ul").append("<li>" + sport["name"] + "</li>");
});
2017-02-14
$(document).ajaxStart(function() {
$('#divload').html("正在請求數據...");
});
$(document).ajaxStop(function() {
$('#divload').html("數據請求完成!");
});
$('#divload').html("正在請求數據...");
});
$(document).ajaxStop(function() {
$('#divload').html("數據請求完成!");
});
2017-02-13
.ajaxStart()和.ajaxStop()方法,與.ready()方法一樣,只能由$(document)調用。
$(document).ajaxStart(function()
$(document).ajaxStop(function()
$(document).ajaxStart(function()
$(document).ajaxStop(function()
2017-02-13