0
我嘗試創建一個使用PHP與ExtJS的登錄,但我堅持了這個問題...建築LOGIN不是一個函數
TypeError: this.getView is not a function
this.getView().destroy();
這裏是我的代碼....
我不知道爲什麼它可能是錯誤,我只是嘗試按照煎茶文檔
buttons: [{
text: 'Login',
formBind: true,
listeners: {
click: function() {
var form = Ext.getCmp('login').getForm();
if(form.isValid()) {
form.submit({
url : 'data/login.php',
method : 'POST',
success:function(){
this.getView().destroy();
Ext.widget('app-main');
},
failure: function() {
obj = Ext.util.JSON.decode(response.responseText);
Ext.Msg.alert('Login Failed!', obj.errors);
}
});
}
}
}
}]
嗨,先生你有什麼想法要解決或如何實現我想要做即時通訊相當卡住了創建一個登錄和IM只是在extjs – itsmecidz 2014-09-22 09:38:10
begineer我在原來的帖子中添加了一些代碼。 – Alexander 2014-09-22 09:44:45
謝謝先生!我嘗試了第一個,但我沒有工作,然後我嘗試第二個,它的工作原理!感謝你的時間 – itsmecidz 2014-09-22 10:01:52