For example,
// Example external script
<script src="https://test.abcd.com/js/test.1.0.0.js" />
<script>
export default {
name: 'HelloWorld',
props: {
msg: String,
},
methods: {
myFunction() {
// This is the example function of the example external script
exampleExternalFunction();
},
},
};
</script>
In this way, I want to add an external script in vue.js and use the functions contained in the external script, but I get an error.
Is there any other way to do this?
index.htmlpage, which contains the head and body