最新回答 / 浮生若梦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');变量可以定义在函数外面,只需要定义一次所有函数都可以使用取消设置的函数可以这样写//定义"取消设置"的函数 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
最赞回答 / 逆旅之行人
//定义"取消设置"的函数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