送出Json的asp
接收json的asp
aspjson
<!--#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
留言