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

Vue组件的Api组件 | idkhts's blog #29

Open
IDKHTS opened this issue Nov 6, 2022 · 0 comments
Open

Vue组件的Api组件 | idkhts's blog #29

IDKHTS opened this issue Nov 6, 2022 · 0 comments

Comments

@IDKHTS
Copy link
Owner

IDKHTS commented Nov 6, 2022

https://idkhts.github.io/2021/01/19/Vue%E7%BB%84%E4%BB%B6%E7%9A%84Api%E7%BB%84%E4%BB%B6/#more

在使用vue框架时,正常的组件调用都是直接使用模板或使用选择器渲染,但在项目中有遇到,直接在js中用api弹出对话框的业务(公共逻辑的一个js文件夹中,代码使用了一个其它库,js直接弹出对话框);使用了vue框架,为了弹窗不必再引入其他库,就需要了解到vue组件的api式调用。 api式调用,指的就是可以在一段js代码中,直接渲染组件,比如这里的例子弹窗 12345//xx

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

No branches or pull requests

1 participant