extjs 4 捕捉响应超时

extjs的connection捕捉响应超时并处理

var conn = Ext.create(‘Ext.data.Connection’,{
listeners: {
“requestexception”: function(){

alert(‘服务器通信失败,请联系主考人员!’);

}
},
timeout: 5000
});

This entry was posted in Computer, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s