你如何添加一个jQuery库? [英] How do you add a jquery library?

查看:53
本文介绍了你如何添加一个jQuery库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

得到了一些在小提琴上工作的代码,但是我认为我的库是不正确的.还是我没有做下面的权利

Got a piece of code that is working on fiddle but i don't think my library is correct. or i haven't done the below right

我真的迷失了方向,因为有人可以将我链接到一个jQuery库

im really lost as what to do can someone link me a jquery library

<head>
<meta charset="UTF-8">
    <title>Main Form</title>
    <link rel= "stylesheet" href="CSS/Stylesheet.css">
    <script src="Jquery.js"></script>
    <script src="jquery-1.10.2.min.js"></script>
</head>

推荐答案

您需要添加脚本文件路径,例如

You neeed to add your script file paths like

<script src="http://localhost/myfolder/jsfolder/Jquery.js"></script>

loclahost将是您的IP,而myfolder将是您的主项目文件夹,我们可以说jsfolder是您将存储包含该Jquery.js

loclahost will be either your IP and myfolder will be your main project folder we can say and jsfolder be the folder at which you will store the js files incliduing this Jquery.js

您还可以使用SERVER变量.一些我们可以直接添加它们的js,例如

You can also use SERVER variables.And some of the js that we can add them directly like

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

这将直接包含来自googleapis.com

这篇关于你如何添加一个jQuery库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆