1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| <html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script src="../js/lib/jQuery/1.9.1/jQuery.js"></script>
<script>
function initPage(){
//jQuery 代码:调用 jQuery 的核心函数---$函数
$("#message").html("Hello World, it is now:"+new Date().toLocaleString());
}
</script>
</head>
<body onload="initPage()">
<span id="message"></span>
</body>
</html>
|