最后的编程练习这样可以吗?如何恢复原始值?用哪个方法?
@iadia function chesc() {var mytxt = document.getElementById("txt"); var mycho = confirm("取消设置?"); if (mycho == true) { mytxt.style.color = "black"; mytxt.style.width = "600px"; mytxt.style.height = "400px"; mytxt.style.display = "block"; } }