一个JSON序列
{"uid":"1","username":"abc","email":"123@163.com"}
我如果使用ASP得到uid,username,email的值呢?
------解决方案--------------------
ASP 也可以用 JS 啊
- HTML code
<script language="JScript" runat="Server"> function toObject(json) { eval("var o=" + json); return o; } </script> <% Dim json json = "{'uid':'1','username':'abc','email':'123@163.com'}" Set json = toObject(json) Response.Write json.uid & "<br/>" Response.Write json.username & "<br/>" Response.Write json.email & "<br/>" Set json = Nothing %>