我正在尝试添加 2 个 Xtemplate 的成员变量。我尝试过这样的事情
reader: new Ext.data.XmlReader({
record: 'RealTimeFlow'
},[
{name: 'successEvent', mapping: '@sEvents'},
{name: 'successLatency', mapping : '@sLatency'},
{name: 'failedEvent', mapping: '@fEvents'},
{name: 'failedPercent', mapping: '@fPercent'},
{name: 'failedLatency', mapping : '@fLatency'}
])
});
var RTFtpl = new Ext.XTemplate(
'<p align="left">Total Events:{[values.successEvent+values.failedEvent]}<br \>',.........................
如果成功事件 = 40 并且失败事件 = 6
那么答案应该是 44 ......但是通过使用上面我得到 406
知道我做错了什么