已采纳回答 / JasonTu
这个是调用函数。写了之后,直接调用内容。不写的话,就在下面 onclick=""加上add2(),点击了之后才可以,显示出来。(我也是新手,不知道说的对不对,哈哈)
2016-01-09
<head>
</head>
<body>
<input name="button" type="button" onclick="rec()"value="ddsiwoba,huiyoujingxide"/>
</body>
</head>
<body>
<input name="button" type="button" onclick="rec()"value="ddsiwoba,huiyoujingxide"/>
</body>
2016-01-09
<html>
<head>
<title>hello,world</title>
<script type="text/javascript>
var mychar="hello.world";
document.write(mychar+“<br>”)
</script>
<head>
<title>hello,world</title>
<script type="text/javascript>
var mychar="hello.world";
document.write(mychar+“<br>”)
</script>
2016-01-09
最新回答 / qq_遠遠的欣賞_0
我认为mouseInsub是多余的,('#test').on('mouseenter','li',function(e){})里面,mouseInsub一直都是false,没必要定义这个变量
2016-01-08
已采纳回答 / Perona
首先了解下语法:window.open([URL], [窗口名称], [参数字符串])这里的参数字符串是一个整体,用引号包裹起来,里面的参数是可选的,可以不写。但是独立开就错了。
2016-01-08
已采纳回答 / sugelalin
Q1:在</script>上面还有个add2(); 这个是什么意思?A1:这是你自己定义的一个Javascript函数,这个函数的意思就是sum=5+6,然后弹出这个sum值。Q2:在这题里把contxt();写在</script>前面,按下键盘就会弹出窗口呢?A2:弹出窗口是因为你在html代码里的button按钮上面绑定了onclick方法(这个方法是,点击按钮就调用coclick(XXX())的这个XXX()函数,也就是前面定义的contxt()函数)
2016-01-08