我使用ExtJS 5.0.1創建了一個簡單的Panel,但是不工作。每次我得到的錯誤SyntaxError: expected expression, got '}'
ExtJS 5:SyntaxError:預期的表達式,使用Ext.panel.Panel得到'}'
var anchura = windowWidth;
anchura *= 0.970;
anchura += 1;
var altura = windowHeight;
altura *= 0.98;
panel = new Ext.panel.Panel({
id:'ventana',
autoScroll:true,
height: altura,
width: anchura,
title: ' <bean:message key="breadcrumbs.gestionInventarios.consultaMultiple" />',
iconCls:'vDependencias',
layout: 'border',
closable: false,
renderTo: 'contenedor',
resizable: false,
items: ['algo','otro algo'],
frame: true
});
什麼是「物品」? –