1:页面重置:this.form.reset() ;
2:返回上个页面:javascript:{history.go(-1)};
3:本地打开个页面:javascript:window.location='task_made.htm#1';
4:打开新窗口:window.open (url , "用户资源", "height=380, width=780")
5:关闭窗口:window.close();
6:链接里面调用方法:<a href=# onclick="winopen();" style="color:#FF0000">点击查看</a>
7:js设置定时器 超时处理
function topTimeOut(){
setTimeout("topLogOut()",1000*300);
}
function topLogOut(){
Ext.Ajax.request({
url: '../LogoutController.form',
method: 'post',
success: function(result,request){
top.document.location='../login.html';
},
failure: function (result,request){
}
});
}
8:
要么忙着生存,要么赶着去死!人总是要做点什么的!