There are a lot of problems these days, because I'm confused about developing hybrid app, and I'd like to ask what needs to be done if vue and native interaction.

for example, is calling their encapsulated method the same as before? Encapsulate the method, and then write their encapsulated method in the method?
what would a natively written method look like?


you're asking about the case where native App embeds a webview.

if you are developing App with a hybrid development framework, most of the methods you are talking about are packaged.

if the native App embeds a webview, if you want to call the native method, you need to expose the method you need on the app side, and then use the communication mechanism to interact (for example, android uses webview and h5 interaction). You don't need to care about how it is written or how it is written.

you can refer to the following link

Android interacts with Vue

Menu