最新回答 / qq_灰色头像_17
你的代码问题是大括号}错误,第一个函数 window.onload = function()的结尾大括号}跑到第二个函数function changebg(obj)后面了
2017-09-17
最新回答 / 小智啊
<!DOCTYPE html><html> <head> <title> 事件</title> <meta charset="utf-8"> <script type="text/javascript"> function count(){ //获取第一个输入框的值 var x = document.getElementById("txt1").value; //获取第二个输入...
2017-09-13
最新回答 / 慕慕8881611
大功告成、!<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Math </title><script type="text/javascript">document.write(Math.round(parseInt(Math.random()*10)));</...
2017-09-12