Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小白问个问题, 这个只能在node的环境下用吗? #20

Closed
wenchuanli opened this issue Nov 14, 2017 · 4 comments
Closed

小白问个问题, 这个只能在node的环境下用吗? #20

wenchuanli opened this issue Nov 14, 2017 · 4 comments

Comments

@wenchuanli
Copy link

No description provided.

@dolymood
Copy link
Contributor

dolymood commented Nov 14, 2017

多谢反馈。
不是的 ,还可以通过 CDN,后续我们补到文档中:

<script src="https://unpkg.com/cube-ui/lib/cube.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/cube-ui/lib/cube.min.css">

入口:

Vue.use(window.cube)

但是我们推荐使用 NPM 的安装方式,这样可以做按需以及后编译。

@ifredom
Copy link

ifredom commented Dec 13, 2017

非vue项目,如何通过script引入后,调用呢

@bestime
Copy link

bestime commented Dec 29, 2017

同上,非vue项目,通过传统的<script>标签引入后,如何使用?

@452MJ
Copy link

452MJ commented Aug 19, 2018

觉得慢的可以试试一下的cdn

<script src="https://cdn.jsdelivr.net/npm/cube-ui@1.10.10/lib/index.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cube-ui@1.10.10/lib/cube.min.css">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants