1. action. result. message
Displays background error information;
Variable for which message needs to be defined in the background
Var form = this. up ('form'). getForm ();
If (form. isValid ()){
// Submit the Ajax request and handle the response
Form. submit ({
Success: function (form, action ){
Ext. Msg. alert ('success', action. result. message );
},
Failure: function (form, action ){
Ext. Msg. alert ('failed', action. result? Action. result. message: 'No response ');
}
});
}
2. Ext. MessageBox. show () is blank
Problems encountered during the background management system, when Ext. MessageBox. show () is used as the prompt box on some pages, it will be displayed blank, and then
Replaced by Ext. MessageBox. alert ()
3. pageSize: 5 is configured on the foreground, but the default value is 25,
Put pageSize: 5 in
[Javascript]
Ext. define ('ht. store. users ',{
// Do not forget to inherit
Extend: 'ext. data. store ',
// Remember to set the model
Model: 'ht. model. user ',
// Set automatic loading to true
AutoLoad: true,
PageSize: 10,
Proxy :{
Type: 'ajax ',
Url: 'user _ get ',
Reader :{
// The data format is json.
Type: 'json ',
Root: 'users ',
TotalProperty: 'totalcount'
}
}
});
Instead of putting it in the proxy. However, you can put it in the proxy again. Once mvc is used, it will not work.