I want to know if javascript can determine whether a file exists based on its address path?
I made a vue dynamic menu. I want to check whether the component component file exists. If it does not exist, I will continue to go out without pushing the route. Is there any way to tell? Not through node, just vue javascript
H5 fileReader
For security reasons, this is not allowed. Otherwise, wouldn’t you feel terrible if your files could be manipulated when you open a web page? ?
How do you read files without going through node?
You need to use node to read the file, the api has
Can I send a request to the backend?