js設置按鈕的灰色不可點擊

document.getElementById("btnSave").setAttribute("disabled", true);//設置不可點擊url

document.getElementById("btnSave").style.backgroundColor  = '#555555';//設置背景色rem

document.getElementById("btnSave").removeAttribute("disabled");//去掉不可點擊get

window.parent.location.href = url;//調用父頁面從新加載io

相關文章
相關標籤/搜索