When using VUe-Cli3 to create a project, you will find that there is no config folder, the only place to configure is the vue.config.js file, and there is no place to configure static resources
If your project needs to import an external JSON HTML file, you’ll need to create a new static folder yourself
Static folder cannot have the same class as SRC if the class is unreachable
You’ll need to create a static folder under public and then write a static file inside so you can access it
When you access it, it’s in a.vue file, or you can use an iframe, of course
If your project needs to import an external JSON HTML file, you’ll need to create a new static folder yourself
Static folder cannot have the same class as SRC if the class is unreachable
You’ll need to create a static folder under public and then write a static file inside so you can access it
When you access it, it’s in a.vue file, or you can use an iframe, of course
axios.get('static/test.html',{accept: 'text/html, text/plain'}).then(function(res){
console.log(12,res.data)
// self.html2 = res.data
})
Vue. config.js will also change the configuration
Read More:
- Nuxt cannot find the static resource in static
- non-static variable this cannot be referenced from a static context
- node.js Static resource acquisition failed
- An error is reported during Java operation due to the problem of static resource export
- Request cannot get static resource
- Spring MVC – enable static resource access
- [How to Solve]Warning: connect.static is not a function
- C ා programming encountered an object reference is required for the non-static field, method, or property error
- [Qt] error: call to non-static member function without an object argument
- error: invalid use of non-static member function
- SSM project controller layer calls static method to report an error
- Scala Flink Watermarker Error: Static Methods in interface require -target:jvm-1.8
- The SSM project cannot load various static resources
- NDK Version Clang++: error: unknown argument: ‘-static-openmp‘
- VirtualBox + CentOS 7 virtual machine setting static IP address of host only NIC
- Spock + powermock simulation static method reports an error java.lang.classcastexception
- ImportError: dlopen: cannot load any more object with static TLS
- ERROR in static/js/app.xxxxxxx.js from UglifyJs Unexpected token: operator (>)
- [W xx:xx:xx.xxx NotebookApp] 404 GET/static/components/react/react-dom.production.min.js (::1)
- Idea running Flink program reported an error: static methods in interface require- target:jvm-1.8