最新回答 / 讯尔小白
if(score>=90) { document.write("你很棒!"); } else if(score>=75) { document.write("不错吆!"); } else if(score>=60) 楼上应该说的就是代码里面的吧 对啊 都满足一百这个条件 为什么只输出一个结果呢
2016-04-05
最赞回答 / 文森特_
var mychar;mychar="javascript";mychar="hello";document.write(mychar);在页面粘贴下,就看到结果输出的是hello。
2016-04-02
最赞回答 / episode丶
不一定要放在head标签之间,也可以放在body标签之间。如果是完成初始化网页的功能,则必须放在head标签之间,如果只是完成网页显示打开后的功能,就可以放在body标签请采纳~
2016-04-02
最新回答 / 策神
那段代码是在你的代码的基础上修改的,经测试也能运行,如果你也看不懂的话,那再看看我简化过的代码,还是在你的基础上修改的:<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/jav...
2016-04-01
最新回答 / 裸心NAKEDHEART
/*<button onclick="chac()">改变颜色</button> */这是什么意思?好像是多余的!<script type="text/JavaScript">function chac(){var new_txt=document.getElementById("txt");new_txt.style.color="red";}</script><input name="change" value="改变颜色"type="butto...
2016-04-01