A--JAX
Ext.Ajax.request({
url: 'page.php',
params: {
id: 1
},
success: function(response){
var text = response.responseText;
// process server response here
}
});
Ext.Ajax.setTimeout(60000); // 60 seconds
TEST
Tests for a match in its string parameter.
When you want to know whether a pattern is found in a string use the test method (similar to theString.search
method); for more information (but slower execution) use the exec method (similar tothe String.match
method). As with exec (or in combination with it), test called multiple times onthe same global regular expression instance will advance past the previous match.
function testinput(re, str){
if (re.test(str))
midstring = " contains ";
else
midstring = " does not contain ";
document.write (str + midstring + re.source);
}
button的UI
The ui style to render this button with. The valid default options are:
'normal'
- a basic gray button (default).'back'
- a back button.'forward'
- a forward button.'round'
- a round button.'plain'
'action'
- shaded using the $active-color (dark blue by default).'decline'
- shaded using the $alert-color (red by default).'confirm'
- shaded using the $confirm-color (green by default).