如何在流星中使用jQuery UI? [英] How do I use jQuery UI in meteor?

查看:90
本文介绍了如何在流星中使用jQuery UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Meteor应用程序中安装jQuery UI的正确方法是什么?由于尚未打包,因此我将下载时附带的jquery-ui.min.js和jquery-1.8.3.js添加到了流星项目的lib文件夹中.这将导致以下致命错误:

What is the correct way to install jQuery UI in a Meteor application? Since it's not a package yet, I added the jquery-ui.min.js and jquery-1.8.3.js that came in the download into the lib folder in my meteor project. That is causing the following fatal error:

Your app is crashing. Here's the latest log.
app/lib/jquery-1.8.3.js:9472
})( window );

ReferenceError: window is not defined
at app/lib/jquery-1.8.3.js:9472:5

(.........)

Exited with code: 1
Your application is crashing. Waiting for file change.

推荐答案

我实际上已经添加了 jquery -ui陨石包,您可以安装

I have actually added a jquery-ui meteorite package that you can install

mrt add jquery-ui

注意:此软件包的版本为1.8.16,并且是 jquery-ui-bootstrap软件包(如果已安装),将自动包含jquery-uibootstrap-updated智能软件包. (所有这些使bootstrap和jquery-ui很好地结合在一起).

Note this package is version 1.8.16 and is a dependency of the jquery-ui-bootstrap package which, if installed, will automatically include the jquery-ui and bootstrap-updated smart packages. (All of which make bootstrap and jquery-ui play nicely together).

要安装所有内容,可以使用: mrt add jquery-ui-bootstrap

To install everything, you can use: mrt add jquery-ui-bootstrap

这篇关于如何在流星中使用jQuery UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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