0
Follow
0
View

How to import written native.jswenjian in vue, using script tags or import

ceyawu 注册会员
2023-02-28 17:27

I included the plus object directly in the js file because the vue project I was writing would end up packaged as apk, I actually ran it in Hbuilder, so plus works.

cxy6688 注册会员
2023-02-28 17:27

If I am running on a real machine then I don't need to import native.js because the real machine provides an h5+ runtime environment. But if I use vue to write not a mobile project but a web project, then I need to import native.js. Is that correct?

daisyby 注册会员
2023-02-28 17:27

import {XXX} from '../js/ XXX .js'

.
< !- - - - - >
dishaoye_521 注册会员
2023-02-28 17:27

Scaffolding typically uses npm xx and then imports xx(which can be registered globally in app.vue). Of course, you can also import it as src in the script in index.html(either using a cdn address or downloading it and importing it from a relative path).

Either is up to you.

cuijingzhe_jasmine 注册会员
2023-02-28 17:27

I don't understand nativ.js for android is not a library, so it is not necessary to download it, is it not

About the Author

Question Info

Publish Time
2023-02-28 17:27
Update Time
2023-02-28 17:27