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结合HTML5+开发APP #1

Open
aiplat opened this issue Jun 23, 2018 · 0 comments
Open

关于vue结合HTML5+开发APP #1

aiplat opened this issue Jun 23, 2018 · 0 comments
Labels
good first issue Good for newcomers

Comments

@aiplat
Copy link
Owner

aiplat commented Jun 23, 2018

关于h5打包成app,我用的是 http://www.dcloud.io 中的hbuilder工具,它可以将H5代码直接打包成Android和iOS的app。

至于调用原生api,用其中的5+Runtime,官方例子有源码,可下载。

而h5的框架选型,个人可以确定,用什么框架都可以,用vue、react、angular等等都可以,看个人爱好:只要在app环境中需要调用原生能力时再调用5+Runtime api,其他环境则不执行。因此,非app环境,就是正常的webapp,不执行5+Runtime api。app环境中,就是webapp加上5+Runtime api。当然,如果app中无调用原生能力,完全只把webapp的代码直接打包到app中就可以了。

@aiplat aiplat added the good first issue Good for newcomers label Jul 8, 2018
@aiplat aiplat closed this as completed Jul 8, 2018
@aiplat aiplat reopened this Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant