为什么是散步呢
2 回答
http://www.imooc.com/data/sport_f.js 里面的代码是:
var data = [{
"name": "足球"
}, {
"name": "散步"
}, {
"name": "篮球"
}, {
"name": "乒乓球"
}, {
"name": "骑自行车"
}];
$.each(data, function (index, sport) {
if (index == 1)
$("ul").append("<li>" + sport["name"] + "</li>");
});
举报
0/150
提交
取消