本文介绍了如何检查angularjs中是否存在文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本文件
firstTime.txt
在我项目的根目录中。现在在AngualrJS的运行功能中我想检查这个文件是否可用?如果可用则删除。
**是否可以检查文件是否存在并在angularJS的运行函数中删除它?**
i have a text file
firstTime.txt
in root directory of my project. Now in AngualrJS's run function i want to check that is this file available or not ?? if available then delete.
**is the possible to check that a file is exists or not and delete it in angularJS' run function?**
推荐答案
这篇关于如何检查angularjs中是否存在文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!