已采納回答 / 誰動了我的小甜餅
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Math </title><script type="text/javascript">?document.write(Math.ceil(3.3)+"</br>")?document.write(Math....
2020-02-21
已采納回答 / 慕的地7636881
你這個錯誤有點多。。。一:文本框寫的 id='fruit' ?,設置結果輸入框值寫的是 ?friut ?,改成 ?fruit ?;二:switch ?有兩處錯誤,case 后面寫錯了,resuslt 的那幾行語句后面沒有用分號結尾;下面是改好了測試過的,你對比一下<!DOCTYPE html><html>?<head>? <title> 事件</title> ?? <script type="text/javascript">? ?f...
2020-02-14
已采納回答 / 慕雪0266382
? ? ? ? function checkmore(){? ? ? ? ? ? var j=document.getElementById("wb").value;? ? ? ? ? ? var i=j.split(",")? ? ? ? ? ? for(x=0;x<i.length;x++){? ? ? ? ? ? ? ?document.getElementById("hobby"+i[x]).checked=true;}