如何用javascript删除文件? [英] How to delete a file with javascript?
问题描述
这些例子没有运气:
Javascript File remove 点击
的Javascript FSO的DeleteFile方法
删除档案
文件没有特殊权限。
有没有办法在 JQuery ?
要求是 - 当加载另一个页面时,必须从web目录中删除某个文件。没有安全问题,因为这是在一个封闭的网络。
任何帮助表示赞赏。
谢谢。
使用纯JavaScript,无法完成。但是,使用AJAX调用删除文件的服务器端脚本也可以。
Did not have luck with these examples:
Javascript File remove
Javascript FSO DeleteFile Method
Deleting a File
There are no special permissions on the file.
Is there a way to do this in JQuery?
The requirement is - a certain file must be deleted from the web directory when another page is loaded. There is no security issue as this is on a closed network.
Any help is appreciated.
Thanks.
With pure JavaScript, it can't be done. Using an AJAX call to a server side script that deletes the file would work though.
这篇关于如何用javascript删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!