如何将jQuery添加到JSfiddle [英] How to add jQuery to JSfiddle

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

问题描述

JSfiddle 的界面已更改,我看不到添加jQuery并将其设置为onLoad的任何选项.

The interface of JSfiddle has changed and i can't see any option to add jQuery, and set it onLoad as it was Before..

所以有人可以帮助我激活它.

So can someone help me how to activate it.

感谢您的帮助.

推荐答案

或者替代 Velimir Tchatchevsky的答案,您可以点击 Javascript设置按钮(在Javascript窗格的左顶部).

Alternatively to Velimir Tchatchevsky's Answer you can click the Javascript Settings button (top right left of Javascript pane).

您可以从 Frameworks&中选择jQuery以及其他扩展和框架.扩展程序下拉列表.

此外,根据选择的库,该库还具有其他扩展名.以下是jQuery 1.7.2的示例,您还可以包括jQuery UI,jQuery Mobile等.

Also, depending on the library selected there are also some other extensions to that library. An example below of jQuery 1.7.2, you can also include jQuery UI, jQuery Mobile etc.

关于Velimir Tchatchevsky的回答,左侧的外部资源部分更多地用于导入JSFiddle没有的其他文件/库.

In regards to Velimir Tchatchevsky's answer, the External Resources section on the left is more for importing other files / libraries that JSFiddle does not have.

例如,您可以导入诸如FontAwesome或Datatables.js之类的库,或者您自己托管的CSS/JS文件.

For example, you could import libraries like FontAwesome or Datatables.js, or your own hosted CSS / JS files.

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

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