sencha touch 通过.axhx获取后台数据时,Unable to parse the JS

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

分类:Sencha Touch开发手记

注意:如果你的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服务器调试!

上一篇如何在浏览器中执行调试Sencha Touch源代码

顶0踩0

通电话,旅行,重复一个承诺和梦想,

sencha touch 通过.axhx获取后台数据时,Unable to parse the JS

相关文章:

你感兴趣的文章:

标签云: