首页 > Web开发 > 详细

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

时间:2015-02-05 16:28:57      阅读:510      评论:0      收藏:0      [点我收藏+]

注意:如果你的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 通过.axhx获取后台数据时,Unable to parse the JSON returned by the server: Error: You're trying to

原文:http://blog.csdn.net/suixufeng/article/details/43528359

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!