sencha touch 通过.axhx获取后台数据时,Unable to parse the JSON returned by the server: Error: You're trying to

来源:互联网 发布:actor模型 知乎 编辑:程序博客网 时间:2024/06/07 07:23

注意:如果你的store跟我一样是使用.ashx从.NET后台获取的,并且用sencha cmd自带的web服务器调试,在chrome调试的时候回会返回如下错误。

[WARN][Ext.data.reader.Reader#process] Unable to parse the JSON returned by the server: Error: You're trying to decode an invalid JSON String: <%@ WebHandler Language="C#" CodeBehind="AdvertisementList.ashx.cs" Class="Myapp.WEB.AdvertisementList" %>

[WARN][Ext.data.reader.Reader#process] JSON object not found 

这个问题困扰了一个周!不知道为什么返回不了数据。最后才想起来.ashx只能运行在IIS下!因此不能用sencha cmd的web服务器调试!

0 0
原创粉丝点击