1
當我嘗試將FormPanel的值傳遞給控制器時,我收到錯誤消息。如何將formvalue傳遞給控制器在sencha touch中
「對象#< HTMLFormElement>沒有方法 '的GetValues'」
Ext.define('MyApp.view.LoginPage', {
extend: 'Ext.form.FormPanel',
id: 'loginPanel',
standardSubmit: true,
config: {
fullscreen: true,
items: [{
xtype: 'fieldset',
items: [
{
xtype: 'textfield',
name: 'name',
label: 'Kullanıcı Adı'
},
{
xtype: 'passwordfield',
name: 'password',
label: 'Şifre'
}
如何訪問loginPanel.getValues()在控制器對象?
當我使用Ext.getCmp('loginPanel')。getValues()時,問題就解決了。 – handet87