0
在那段代碼中,我想每當點擊spinnerfield時,spinnerfield的值就會增加,這個時候動態地改變textfield值的值。無論何時我點擊spinnerfield我想要spinnerfield的值增加動態地改變文本域的值
Ext.setup
({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function()
{
new Ext.Panel
({
fullscreen:'true',
items:[
{
xtype : 'spinnerfield',
name:'sp',
width:'20%',
height:'13%',
minValue: 0,
},
{
xtype:'textfield',
name:'price',
height:'13%',
width:'8%',
html:'<b>350</b>',
}
]
});
}
});