vue.js - Can javascript determine whether a file exists? ? ?
为情所困
为情所困 2017-05-19 10:42:38
0
5
1619

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

为情所困
为情所困

reply all (5)
洪涛

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?

            Latest Downloads
            More>
            Web Effects
            Website Source Code
            Website Materials
            Front End Template
            About us Disclaimer Sitemap
            php.cn:Public welfare online PHP training,Help PHP learners grow quickly!