foo.html
<html>
<head></head>
<body>
<script type="text/javascript" src="./jQuery.js"></script>
<script type="text/javascript" src="./foo.js"></script>
</body>
</html>
foo.js
$(document).ready(function (){
$("body").append("<p>Hello jQuery!</p>");
$("p").click(
function (){
$(this).fadeOut(3000);
$(this).fadeIn(3000);
}
);
});
jQuery.js
jquery包