官网
JSON for ASP. 解决了对象到 json的变换问题,没有解决 json 到 VbSrcript 问题
Prototype 支持 json
与asp交互时的中文问题解决了:
<%
' CODEPAGE="65001"
' 936 简体中文
' 950 繁体中文
' 65001 UTF-8
' CODEPAGE="65001"
' 936 简体中文
' 950 繁体中文
' 65001 UTF-8
Response.Expires = -1000
Response.contenttype="text/html"
Response.Charset="gb2312"
response.addHeader "pragma","no-cache"
response.addHeader "cache-control","private"
Response.cachecontrol = "no-cache"
Server.ScriptTimeOut = 150
Response.contenttype="text/html"
Response.Charset="gb2312"
response.addHeader "pragma","no-cache"
response.addHeader "cache-control","private"
Response.cachecontrol = "no-cache"
Server.ScriptTimeOut = 150
Session.CodePage=65001
Dim member
Set member = jsObject()
member("title") = request("txtTitle") & "|" & "中文" & "|" & ExecuteScalar("SELECT 登录名称 FROM 用户表 WHERE id=6256786") & timer
member("content") = "中文" & timer
member.Flush
Response.End()
%>
Set member = jsObject()
member("title") = request("txtTitle") & "|" & "中文" & "|" & ExecuteScalar("SELECT 登录名称 FROM 用户表 WHERE id=6256786") & timer
member("content") = "中文" & timer
member.Flush
Response.End()
%>