1. 返回的json数据必须用双引号",不能用单引号',如: sb.Append("{\"id\":\"" + row[idCol] + "\",\"text\":\"" + row[txtCol] + "\",\"attributes\":\"" + row[url] + "\",\"state\":\"open\"");
2. .ashx文件中的ContentType = "text/json";
1. 返回的json数据必须用双引号",不能用单引号',如: sb.Append("{\"id\":\"" + row[idCol] + "\",\"text\":\"" + row[txtCol] + "\",\"attributes\":\"" + row[url] + "\",\"state\":\"open\"");
2. .ashx文件中的ContentType = "text/json";