第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

reset函數(shù)運行不了,是什么鬼??????

reset函數(shù)運行不了,是什么鬼?????

正在回答

4 回答

reset是關(guān)鍵字,不能用否則有沖突,你可以改成其他名字,這種簡單而且涉及操作的英文如果出問題了,實在找不到原因基本上都可以注意一下是不是關(guān)鍵字沖突。

0 回復(fù) 有任何疑惑可以回復(fù)我~
改一下函數(shù)名就可以了,不能用reset,會有沖突的。


0 回復(fù) 有任何疑惑可以回復(fù)我~

其他的都能用就reset不行

0 回復(fù) 有任何疑惑可以回復(fù)我~

<input type="button" onclick="changecolor()" value="改變顏色" >??

? ? <input type="button" onclick="changewidth()" value="改變寬高" >

? ? <input type="button" onclick="content()" value="隱藏內(nèi)容" >

? ? <input type="button" onclick="display()" value="顯示內(nèi)容" >

? ? <input type="button" onclick="reset()" value="取消設(shè)置" >

? </form>

? <script type="text/javascript">

? ? var text=document.getElementById('con');

? ? var box=document.getElementById('txt');

? ? function changecolor(){

? ? ? ? text.style.color='red';

? ? ? ? box.style.backgroundColor='gray';

? ? }

? ? function changewidth(){

? ? ? ? var box=document.getElementById('txt');

? ? ? ? box.style.width='200px';

? ? ? ? box.style.height='500px';

? ? }

? function content(){

? ? ? box.style.display="none";

? }

? function display(){

? ? ? box.style.display="block";

? }

? ? function reset(){

? ? ? ? var srs = confirm("確認取消設(shè)置?");

? ? ? ? if (srs==true)

? ? ? ? {

? ? ? ? ? ? box.style.color = "black";

? ? ? ? ? ? box.style.backgroundColor = "white";

? ? ? ? ? ? box.style.width = orignWidth;

? ? ? ? ? ? box.style.height = orignHeight;

? ? ? ? ? ? box.style.display = "block";

? ? ? ? }

? ? }

? </script>

</body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

reset函數(shù)運行不了,是什么鬼??????

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號