window.location=window.location
刷新頁面的時候會出現做完幾步操作以後刷新頁面的按鈕失效的情況.經排查是url後面的"#"在作祟.
解決方法
var str = window.location.toString();
if (str.lastIndexOf('#') != -1) {
str = str.substring(0, str.length-1);
}
window.location=str;
}
主要用到 $("#id").show();//顯示 $("#id").hide();//隱藏 $("#id").toggle();//狀態相反