最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Using jsfiddle: how can I use underscore.js or backbone.js libraries? - Stack Overflow

programmeradmin0浏览0评论

In jsfiddle is possible to use for example jQuery.
But I cannot see any references, for example, to underscore or backbone.js.

If I run this demo I get the error:

Uncaught ReferenceError: _ is not defined 

How can I use underscore.js or backbone.js libraries in jsfiddle?

In jsfiddle is possible to use for example jQuery.
But I cannot see any references, for example, to underscore or backbone.js.

If I run this demo I get the error:

Uncaught ReferenceError: _ is not defined 

How can I use underscore.js or backbone.js libraries in jsfiddle?

Share Improve this question asked Apr 30, 2012 at 9:08 underscore666underscore666 1,7395 gold badges24 silver badges38 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 15

Add the URL for the required library under the "Add Resources" button on the left hand side.

See http://jsfiddle.net/alnitak/BwHxv/

I'm using a self-made jsfiddle base with log included in the HTML, so you don't have to open developer tools :

Includes Backbone and Underscore

http://jsfiddle.net/drinchev/NL2z9/2/

I usually started out from this: http://jsfiddle.net/dandiebolt/auHFG/

This comes up as the first result when searching for "jsfiddle underscore".

发布评论

评论列表(0)

  1. 暂无评论