gpt4 book ai didi

jquery - 为什么它不会消失?

转载 作者:行者123 更新时间:2023-12-01 01:06:53 25 4
gpt4 key购买 nike

为什么它不淡出?

<!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);
});

最佳答案

错误 404 当我在新标签页中打开时

http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js

在脚本标记中使用以下代码。

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>

或按照kmsdev建议添加最新版本

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

关于jquery - 为什么它不会消失?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30259030/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com