I want to introduce a complete js file into a vue file. So I don"t think it"s appropriate to use import to introduce all the content at once.
then I tried two more methods (I don"t know if there is one)
1. < script src= "type=" text/javascript "< / script >
introduced
reported an error
2 in the vue file. < script src= "type=" text/javascript "> < / script >
introduced
in the html file did not report an error, but could not find
when calling a function in vue. Is there any way to implement it? Ask for advice
I"m working on a small map project, and I want to introduce an area measurement function. I found a js file on the Internet to achieve this function
directly in html
< script src= ". / GeoUtils.js" type= "text/javascript" > < / script >
< script type= "text/javascript" src=. / AreaTool_min.js "> < / script > you can use
I want to introduce it in vue, but only export. There is always a hint that there is an undefined, I do not know what better way to solve this problem?