【问题标题】:what .js and .css files to include when setting up jstree设置 jstree 时要包含哪些 .js 和 .css 文件
【发布时间】:2011-10-09 11:00:09
【问题描述】:

我已经从jstree home 下载链接下载了文件。我已经在使用 jquery 库了。

下载包含以下文件 1. _lib(三个 .js 文件)
2. 主题(不同的主题样式(.css),还包括jstree的图片)
3. _docs 文件夹(文档说明)
4. _demo(演示文件)
5. jquery.jstree.js(目前我的应用中只包含了这个文件)

我需要从下载的 Rails 应用程序中包含哪些文件(图片 .js 和 .css)。我已经看到了可以下载的其他 _libs 的链接。 谢谢

【问题讨论】:

    标签: jquery ruby-on-rails-3 jquery-plugins jstree


    【解决方案1】:

    假设您只想要基本的 jsTree 安装,您将包括:

    jquery.jstree.js
    themes/default/style.css
    themes/default/ (Copy this entire folder into your project)
    

    那么你可以包括:

    jquery.cookie.js - For cookie support
    jquery.hotkeys.js - For keyboard support
    

    【讨论】:

    • @BladeOrz 谢谢我刚刚意识到我有另一个文件 style.css,这导致了冲突,无论如何谢谢。
    猜你喜欢
    • 2014-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-12
    • 1970-01-01
    • 2011-02-13
    相关资源
    最近更新 更多