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

【第三方组件请求封装】专题模块 #39

Open
guguaihaha opened this issue Apr 15, 2019 · 0 comments
Open

【第三方组件请求封装】专题模块 #39

guguaihaha opened this issue Apr 15, 2019 · 0 comments

Comments

@guguaihaha
Copy link
Collaborator

如果自己不会封装第三方的js组件,可以发送需求的js地址链接,外加别名即可,后续会同步注册到Nv组件库上。当然自己也可以注册,很简单的。
展示为市场上常用的组件,Nv能快速扩展所有市场js组件和插件,只需要简单包装一下即可。

第一步:下载非压缩版本的js代码

第二步:找到注册到window上的变量比如:window.jQuery,window.Swiper等

第三步:删除注册到window上的变量同时将其return到Nv的add方法内即可完成

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

1 participant