最新回答 / 浮生若夢(mèng)e
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" Content="text/html; charset=utf-8" /><title>javascript</title><style type="text/css">body{font-size:12px;}#txt{? ? height:400px;? ? width:600px; border:#3...
2020-06-05
最新回答 / 沉默寡言黃少天丶
// 變量? ? var objCon = document.getElementById('con');? ? var objTxt = document.getElementById('txt');變量可以定義在函數(shù)外面,只需要定義一次所有函數(shù)都可以使用取消設(shè)置的函數(shù)可以這樣寫(xiě)//定義"取消設(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_慕移動(dòng)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