已采纳回答 / 慕粉4397050
object HTMLParagraphElement 表示的是 获取的是一个对象p标签 你可以试试这样写 document.write(document.getElementById("id名").innerText)
2016-12-04
已采纳回答 / qq_fighting_31
url="http://www.baidu.com"; window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');和 window.open('http://www.baidu.com','_blank','width=400,height=500,menubar=no,toolbar=no');比较一下就懂了
2016-12-03
已采纳回答 / 明天丿你好
rec就是一个函数名,function 是函数指标;说白了就是要定义一个函数:function 后面跟上函数名(你这里函数名是rec),花括号{}里面的是函数体;
2016-12-02
已采纳回答 / 我不是管家
我的建议是用户的可读性,例如你完全可以这样写var question = prompt("请输入数字‘1:更改宽高 2:更改颜色 3:隐藏内容 4:显示内容 5:取消设置’");然后判断语句的条件也改下这样不是对于用户来说方便了许多
2016-12-02
已采纳回答 / lwl0812
浏览器兼容问题。Mozilla、Firefox浏览器在配置文件中如果设置了dom.disable_window_open_feature.menubar 或 dom.disable_window_open_feature.toolbar 的值为true的话,即使你在window.open()里设置了这两个的值为no,也是不会起作用的。
2016-12-01
已采纳回答 / 不二是兔子
<!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 ans=confirm(...
2016-12-01
已采纳回答 / 慕粉3628429
<form> <!--当点击相应按钮,执行相应操作,为按钮添加相应事件--> <input type="button" value="改变颜色" > <input type="button" value="改变宽高" > <input type="button" value="隐藏内容" > <input type="button" value="显示内容" > <input type="bu...
2016-11-30