我正在谷歌 Chrome 浏览器中测试这个 javascript,它给了我一个错误:Uncaught SyntaxError: Unexpected Identifier。
Ext.application({
name: 'Sencha',
launch: function() {
Ext.create("Ext.tab.Panel",{
fullscreen: true,
tabBarPosition: 'bottom',
var image = Ext.widget('image',{
xtype: "image",
src: "images.jpg",
scope: this
});
this.add([image]);
});
}
});