gpt4 book ai didi

browser - 使用Java脚本实现ftp

转载 作者:行者123 更新时间:2023-12-04 03:07:07 26 4
gpt4 key购买 nike

我不明白为什么Javascript无法进行ftp通话?为什么我们必须使用服务器发出这样的请求?

甚至浏览器也具有对ftp服务器进行身份验证和浏览的能力。也许使用浏览器api来做到这一点?

最佳答案

好的,在这里回答我自己的问题。

我浏览了XMLHTTPRequest上的Mozilla文档。它具体说-

Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML, and it supports protocols other than HTTP (including file and ftp).



因此,我对此感到满意。 JavaScript可以使用此调用ftp。

关于browser - 使用Java脚本实现ftp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26946684/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com