<title>无标题页</title>
<script type="text/javascript" src=\'#\'" /jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$.getJSON("Jsonashx/JsonData.ashx",function(result){
$.each(result,function(i,field){
$.each(field,function(kk,vv) {
$("p").append(vv.buyname + " ");
});
});
});
});
});
</script>
</head> <body> <form id="form1" runat="server"> <button>获得 JSON 数据</button> <p></p> </form> </body> </html>