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

后台html文件中如何引入类似<script src='https://cdn.bootcss.com/socket.io/2.0.3/socket.io.js'></script>这样的远程js文件 #64

Closed
MrYuLei opened this issue Jan 8, 2018 · 1 comment

Comments

@MrYuLei
Copy link

MrYuLei commented Jan 8, 2018

No description provided.

@zoujingli
Copy link
Owner

zoujingli commented Jan 9, 2018

试试,外部插件都是这样加载的,基于requirejs,如果是css,前缀是css!+地址
require(['//cdn.bootcss.com/socket.io/2.0.3/socket.io.js'],function(io){ console.log(io); })

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

2 participants