谷歌jQuery UI链接无法脱机工作

google jQuery UI links not working offline

本文关键字:脱机工作 链接 jQuery UI 谷歌      更新时间:2023-09-26

im是jquery的新手,我已经搜索了添加<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>后jquery不工作的原因我已经搜索了这个论坛和网络,但似乎找不到答案,我的代码是错误的。或者可能是一些术语把我吓跑了。但如果有人帮我,我会很高兴的。

这是代码:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JAVASCRIPT TRIAL</title>
<style>
div {
    position:relative;
    top:50px;
    width:200px;
    height:200px;
    border-radius:10px;
    margin:auto;
    background-color:#F00;
    box-shadow:2px;
}
div2 {
    position:relative;
    top:50px;
    width:200px;
    height:200px;
    border-radius:50px;
    margin:auto;
    background-color:#F60;
}
</style>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
$(document).ready(function() {
    $('div').click(function(){
        $(this).addClass('div');
    });
    $('div').hover(function(){
    $(this).effect('bounce', {times:4}, 1000);
    });
});
</script>
</head>
<body>
<div></div>
</body>
</html>

提前感谢大家

离线是什么意思?如果你没有互联网接入,那么你最好从jquery下载一个版本,并在本地使用。

Google jQuery UI链接永远不会脱机工作。您应该在本地系统中下载它,然后必须使用它。