確定設(shè)置的代碼?
function rec(){ ? ?var message=confirm("你確定是否取消?"); ? ?if(message==true){ ? ? ?txt.removeAttribute('style'); ? ?} ? ?} ? ?// function rec(){ ? ?// var message=confirm("你確定要重置所有設(shè)置么?"); ? ?// ? ? if(message==true){ ? ?// ? ? ? ? txt.removeAttribute('style'); ? ?// ? ? } ? ?// } 為什么下面的代碼才可以用
2017-03-09
你上面的代碼(var message=confirm("你確定是否取消?");)這一塊你后面用的是中文的分號(hào),改為英文的試下
2017-03-08
好深?yuàn)W,可能是還沒反應(yīng)過來呢
2017-03-08
除了漢語不一樣,哪里還有不一樣的??上下都一樣啊