最新回答 / 潇萌新吖
function sumb(){var set = confirm("确定重置吗?");if(set){text.removeAttribute("style")}}<...code...>
2018-11-22
最赞回答 / 我是一片水中的沸腾鱼
function resttext(){ var mychose= confirm("确认重置吗?"); if(mychose){ document.getElementById("txt").style.cssText="none"; }}
2018-11-21
最新回答 / weixin_慕码人1095277
var b=prompt("请输入网址"," http://www.imooc.com/"); 这个地方http: //中间的:是中文下的冒号, alert("再见");这句最后的分号也是中文下的分号。编写过程中全英文状态下编写。就可以避免这些问题。
2018-11-20
最赞回答 / 慕粉3864155
给你一份我写的<html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> function openWindow(){ var message = confirm("是否打开")...
2018-11-20
已采纳回答 / Autism21
函数没有被引用,在按钮处添加onClick,ex: <input type="button" onClick="changecolor()" value="改变颜色" > 隐藏内容函数里,”noen“应该是“none”
2018-11-20