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:關(guān)閉窗口:window.close();
6:鏈接里面調(diào)用方法:<a href=# onclick="winopen();" style="color:#FF0000">點擊查看</a>
7:js設(shè)置定時器 超時處理
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:
要么忙著生存,要么趕著去死!人總是要做點什么的!