无法调用未定义的app.js的方法“substring”:1 sencha嵌套 [英] Cannot call method 'substring' of undefined app.js:1 sencha nested

查看:227
本文介绍了无法调用未定义的app.js的方法“substring”:1 sencha嵌套的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法调用未定义的app.js的方法substring:1



我在基于< a href =http://docs.sencha.com/touch/2-1/#!/guide/first_app =nofollow>构建您的第一个应用程序 sencha文档教程。正常版本运行正常,但是当它构建时,我只需要一个蓝色的屏幕。当我评论嵌套列表的代理相关行时,内置版本运行正常。

  proxy:{
type:' jsonp',
url:'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',
reader:{
type:'json',
rootProperty:'responseData.feed.entries'
}
}
/ pre>

解决



大多数网站声称是因为xtype写得不好( example ),但在这种情况下,这是由于缺少明确的要求,例如JsonP,NestedList等。

解决方案

p> SOLVED



大多数网站声称是因为xtype写得不好(示例),但是在这种情况下,是由于缺少明确的要求,例如JsonP ,NestedList等。


Cannot call method 'substring' of undefined app.js:1

I get this error on the build package version of a sencha touch app that's based on the building your first app tutorial on sencha doc. The regular version runs just fine, but when it is build I Just get a blue screen. The built version runs fine when I comment the proxy related lines for the nestedlist.

proxy: {
    type: 'jsonp',
    url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',
    reader: {
        type: 'json',
        rootProperty: 'responseData.feed.entries'
    }
}

SOLVED

Most sites claim it is because an xtype is badly written (example), but, in this case it was due to missing explicit requires of things such as the JsonP, NestedList, etc.

解决方案

SOLVED

Most sites claim it is because an xtype is badly written (example), but, in this case it was due to missing explicit requires of things such as the JsonP, NestedList, etc.

这篇关于无法调用未定义的app.js的方法“substring”:1 sencha嵌套的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆