How to reference native demo in vue project

    The
  1. project was developed using vue, and there was a feature that could not be done in time. Another colleague helped to do it. He wrote it all in a native way, and js was introduced into html as a separate file. I would like to call his demo in the project how to operate?
  2. the file layout of the following dome
    clipboard.png
  3. can I introduce this demo, into vue or do I have to split it and package it into components? He JS wrote a lot of this, sub-packaged as a component this pointing has become a problem. I would like to ask you for advice.
Nov.09,2021

1. Put his js file under public
2. Introduce his js file
3 into your vue's index.html. Reference the method provided by him through window.xxx in your vue file


import at main.js

Menu