最新回答 / 沉默寡言黃少天丶
// 變量? ? var objCon = document.getElementById('con');? ? var objTxt = document.getElementById('txt');變量可以定義在函數(shù)外面,只需要定義一次所有函數(shù)都可以使用取消設(shè)置的函數(shù)可以這樣寫//定義"取消設(shè)置"的函數(shù)? ? function cancelSetUp()? ? {? ? ? ? let check;? ? ? ? check = confirm();? ? ? ? if(check==true)? ?...
2020-05-29
最新回答 / qq_慕瓜0089729
? ? <input?type="button"?value="改變顏色" onclick="changeColor">? ? <input?type="button"?value="改變顏色" onclick="changeColor">? ? <input?type="button"?value="改變寬高" onclick="changeSize">......
2020-05-23
最贊回答 / weixin_慕移動7454092
<!DOCTYPE html><html>?<head>? <title> new document </title>??? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?? <script type="text/javascript">? ?? ? ?function openWindow()? ? ?{? ? ? ? var m...
2020-05-23
最贊回答 / 逆旅之行人
//定義"取消設(shè)置"的函數(shù)function?cancelset(){??var?cancle=confirm("確定還原?");??var?cc=document.getElementById("txt");??var?cd=document.getElementById("con");??if?(cancle==true){????cc.removeAttribute("style");????cd.removeAttribute("style");??}else{??}?}
2020-05-20
最贊回答 / PHP設(shè)計工程師
<!DOCTYPE?html&t;&&t;hhtml&t;??&;hehead&;????&itltitle&new?new?document?&le&/title< ??&ttpmeta?http-equiv="Content-Type"?content="text/html;?charset=gbk"/&rip ??&="tscript?type="text/javascript"&n?o ????function?openWindow(){...
2020-05-18
最贊回答 / qq_CQ_0
ducument.write(),沒有ducument.write=()的寫法