Fancytree和骨干 [英] Fancytree and Backbone

查看:153
本文介绍了Fancytree和骨干的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在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({

任何想法?

谢谢!

推荐答案

请确保您使用的是兼容的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屋!

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