<html>
<body>
<script language="JavaScript" type="text/javascript">
var geetingstring="hello";
var myname=prompt("Please enter you name ","");
var concatstring;
document.write(geetingstring+" "+myname+"<br>");
concatstring=geetingstring+" "+myname;
document.write(concatstring);
</script>
</body>
</html>
JavaScript 简单入门学习笔记(一)
最新推荐文章于 2024-07-13 15:45:29 发布