给mynum赋值是这么写的吗??js里面的
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>变量</title>
<script type="text/javascript">
var mynum;
mynum="8";
</script>
</head>
<body>
<script type="text/javascript">
document.write("mynum");
</script>
</body>
</html>