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

同样返回

int i = 1;

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

时,

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

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

posted @ 2019-01-02 16:36  何以平天下  阅读(394)  评论(0编辑  收藏  举报