关于使用$.ajax调用ashx文件和$.post调用ashx使用中遇到的问题

同样返回

int i = 1;

string strJson = "{\"result\":" + i + "}";
context.Response.Write(strJson);

时,

$.ajax接收的没有外面的引号

$.post接收的有外面的引号

猜你喜欢

转载自www.cnblogs.com/heyiping/p/10209349.html