window.location.href的一種用法

window.location.href='<%=request.getContextPath()%>/patientCenter/main'; 在js中的使用方式,單引號直接添加controller請求路徑,意爲在當前窗口(頁面)打開請求的頁面

window.location.reload; 刷新當前頁面


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章