Fancytree和骨干 [英] Fancytree and Backbone
问题描述
我想在Backbone.js的应用程序中使用fancytree。
I am trying to use fancytree in a backbone.js application.
我收到以下错误:
类型错误:$(...)fancytree不是一个函数
TypeError: $(...).fancytree is not a function
当它击中在Backbone.js的这一行查看:
when it hits this line in the backbone.js view:
VAR myTree = $(#buildingsTree)。fancytree({
var myTree = $("#buildingsTree").fancytree({
任何想法?
谢谢!
推荐答案
-
请确保您有需要的fancytree js文件视图被加载之前,按的https://github.com/mar10/fancytree/wiki#user-content-embed-fancytree-on-your-web-page
请确保您使用的是兼容的jQuery版本:要求的最低版本的jQuery 1.7+和jQuery UI 1.8.6+的 https://github.com/mar10/fancytree/wiki#user-content-getting-started
Make sure you are using a compatible jQuery version: "Required minimum versions are jQuery 1.7+ and jQuery UI 1.8.6+" https://github.com/mar10/fancytree/wiki#user-content-getting-started
这篇关于Fancytree和骨干的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!