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
漂亮男人2017-05-19 10:44:38
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? ?