<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html?xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
?<script?language="javascript"?src="file:///D|/WEB軟件/jQuery1.11.0_20140330.chm"??type="text/javascript"></script>
<title>無標題文檔</title>
</head>
????
<style??type="text/css">
???
?????#test{
????display:none;
width:120px;
height:60px;
border:1px?solid?#ccc;
?}
</style>
?<script?type="text/javascript">
????????????function?sayHello(){
???????????????$("#test").show();
????????????}
????????</script>
<body>
????????<div?id="test">Hello?iMooc!</div>
????????<button?onclick="sayHello()">點我!</button>
????????
???????
</body>
</html>
2016-06-11
路徑有問題,改成這個就好了src="http://libs.baidu.com/jquery/1.9.0/jquery.js"