爲什麼它不會淡出?爲什麼它不淡出?
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<p>asdasds</p>
</body>
</html>
我的script.js是一個外部文件
$(document).ready(function() {
$('p').fadeOut(500);
});
哇有趣個個都是精品中的代碼 –
https://jsfiddle.net/somnath_k/no7jydaw/代碼沒有錯..你有什麼錯誤嗎? –
網址http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js不存在。 – panther