<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>挑战题</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script> <script> // $(function(){ // var jsonStu = [ // {"name":"one","count":"100"}, // {"name":"two","count":"60"}, // ] // $.each(jsonStu,function(index,d){ // $("div").append("<li>"+d.name+":"+d.count+"</li>") // }) // }) $(function(){ var jsonStu = [ {"name":"a","fenshu":"100"}, {"name":"b","fenshu":"90"}, ] $.each(jsonStu,function(index,s){ $("div").append("<li>"+s.name+":"+s.fenshu+"</li>") }) }) </script> </head> <body> <div></div> </body> </html>

落单的双子
2014-08-08
举报
0/150
提交
取消