javascript的几种写法总结

javascript的几种写法总结

javascript的几种写法总结

<title>几个JavaScript</title>
<script language="javascript">
	//变量
	var greeting;//变量名
	greeting = "Welcome to the JS!";//为变量赋值
</script>
</head>

<body>
<script language="javascript">
document.write(greeting);//输出变量值
</script>

</body>

相关推荐