跳到主要內容

發表文章

目前顯示的是 7月, 2011的文章

[asp]asp + JSON

送出Json的asp <!--#include virtual="_lib/JSON_2.0.4.asp"--> <% Dim member Set member = jsObject() member("name") = "MAX" member("surname") = "max" member("message") = "Hello World" member.Flush %> 接收json的asp <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div id="dname"></div> <script> $.getJSON("jsonTest.asp", function(data) { $("#dname").text(data.name); }); </script> </body> </html> aspjson