百度一下document.write()就看到了:“在javascript中,document.write()方法常用来网页向文档中输出内容。”
任务中已经写明了没有输出结果,所以大家就别加这一串了行吗→_→
任务中已经写明了没有输出结果,所以大家就别加这一串了行吗→_→
2016-01-15
//定义"取消设置"的函数
function resetSettings(){
var mytxt = document.getElementById("txt");
var mychar =confirm("是否取消设置?");
if(mychar){
mytxt.removeAttribute("style");
}else{
//不做操作
}
}
function resetSettings(){
var mytxt = document.getElementById("txt");
var mychar =confirm("是否取消设置?");
if(mychar){
mytxt.removeAttribute("style");
}else{
//不做操作
}
}
最新回答 / 伊望岁月
JavaScript本来叫LiveScript,在Netscape Navigator 2正式发布前夕,Netscape 为了搭上媒体热炒java的顺风车,所以改名为JavaScript。然并卵java和JavaScript没有一毛钱关系
2016-01-14
最新回答 / 从猿进化到猿
<!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 a=confirm("...
2016-01-14
function openWindow(){
var mysay=confirm("是否打开?")if(mysay==true){ var wangzhan=prompt('请输入网址','http://www.imooc.com/')
if(wangzhan=='http://www.imooc.com/') window.open('http://www.imooc.com/','width:400,height:500,menubar:no,toolbar:no')
} else{null} }else{null}
}
var mysay=confirm("是否打开?")if(mysay==true){ var wangzhan=prompt('请输入网址','http://www.imooc.com/')
if(wangzhan=='http://www.imooc.com/') window.open('http://www.imooc.com/','width:400,height:500,menubar:no,toolbar:no')
} else{null} }else{null}
}