1
첫 번째 응용 프로그램을 만들려면 Sencha 웹 사이트의 비디오를 따르고 있습니다. ,Sencha Touch 2 Store Type 오류
Ext.define('GS.view.Blog',{
extend: 'Ext.navigation.View',
xtype: 'blogpanel',
requires: [
'Ext.dataview.List',
'Ext.data.proxy.JsonP'
],
config: {
title: 'Blog',
iconCls: 'star',
items: {
xtype: 'list',
itemTpl: '{title}',
store: {
autoLoad: true,
fields: ['title', 'author', 'content'],
root: {
leaf: false
},
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'
}
}
}
}
}
});
사파리 콘솔에서 그것은 나에게 다음과 같은 오류를주고있다 : Video
이 내가 블로그 탭을 위해 사용하고 코드는 다음과 같습니다
이
내가 다음있어 비디오입니다 StoreManager.js : 97 :TypeError: 'undefined' is not a valid argument for 'instanceof' (evaluating 'store instanceof Ext.data.Store')
내가 뭘 잘못하고 있니?
에이 코드를 추가! 하지만 이제는이 경고를주었습니다. 'requires : []'- 'Synchronously loading'Ext.data.proxy.JsonP '; 'Ext.data.proxy.JsonP'를 명시 적으로 해당 클래스의 요구 사항으로 추가하는 것을 고려하십시오 .' – silentw