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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45957-43802.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45957-43802.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?