无法调用未定义的app.js的方法“substring”:1 sencha嵌套 [英] Cannot call method 'substring' of undefined app.js:1 sencha nested
问题描述
无法调用未定义的app.js的方法substring:1
我在基于< a href =http://docs.sencha.com/touch/2-1/#!/guide/first_app =nofollow>构建您的第一个应用程序 sencha文档教程。正常版本运行正常,但是当它构建时,我只需要一个蓝色的屏幕。当我评论嵌套列表的代理相关行时,内置版本运行正常。
proxy:{
/ pre>
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'
}
}
解决
大多数网站声称是因为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屋!