ajax传递如下值
url: "reg.asp", //后台处理程序
type: "post", //数据发送方式
dataType: "json", //接受数据格式
data: { //要传递的数据
title: function() {
return $("#title").val();
}
}
后端如何获取到"[title:"123"]"这样的json数据呢
https://blog.csdn.net/cdb104/article/details/80507580
asp 参考 https://www.cnblogs.com/asplover/p/11432506.html
是ASP不是.net
下面是答案
Dim reqData
With CreateObject("Adodb.Stream")
.Mode = 3
.Type = 1
.Open
.Write Request.BinaryRead(Request.TotalBytes)
.Position = 0
.Type = 2
.Charset = "UTF-8"
reqData = .ReadText(-1)
.Close
End With
response.write reqData