如何将Jquery添加到Sublime Text 2? [英] How to add Jquery to Sublime Text 2?

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

问题描述

这听起来很愚蠢.

但是如何将Jquery添加到崇高的文本2中?

But how do you add Jquery to sublime text 2?

似乎无法正常工作.

我添加了 github.

I've added this github.

然后在我的程序包中创建了一个Jquery文件夹.

Then created a Jquery folder in my packages.

最后我将其添加到我的头部标签中.

Finally I added this into my head tags.

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

但仍然没有运气.

推荐答案

Sublime Text 2使用JavaScript语法来支持jQuery.在查看您尝试过的Github存储库时,我假设您需要某种片段库.我建议改为: https://github.com/aaronpowell/sublime-jquery-snippets 和/或 https://github.com/SublimeText/jQuery .

Sublime Text 2 uses JavaScript syntax for supporting jQuery. In looking at the Github repo you tried, I'm assuming you're wanting some sort of a snippet library. I'd recommend this instead: https://github.com/aaronpowell/sublime-jquery-snippets and/or https://github.com/SublimeText/jQuery.

要为您澄清其他内容,请添加:

To clarify something else for you, adding:

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

将jQuery库添加到HTML页面,以便您可以使用其方法和功能.它没有将其添加到Sublime Text 2中,但是出于上述原因,它仍然是必需的.

Adds the jQuery library to your HTML page so you can use its methods and functions. It doesn't add it to Sublime Text 2, but nonetheless it is necessary for the aforementioned reason.

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

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