我正在使用curl php API访问FTP链接。在特定站点上,它给出错误代码9(拒绝访问)。但是,可以从IE和Firefox访问该链接。
然后我运行curl命令行,它给出了相同的“访问拒绝”结果。
> d:>\curl -v ftp://ftp1.example.com/outgoing/EHF/dbex10win_en.zip
> * About to connect() to ftp1.example.com port 21 (#0)
> * Trying 204.50.113.145...
> * connected
> * Connected to ftp1.example.com (204.50.113.145) port 21 (#0) < 220 Microsoft FTP Service
> > USER anonymous < 331 Anonymous access allowed, send identity (e-mail name) as password.
> > PASS ftp@example.com < 230-Welcome to Example FTP site! < 230 Anonymous user logged in.
> > PWD < 257 "/" is current directory.
> …Run Code Online (Sandbox Code Playgroud) 我可以通过使用"onclick"事件来调用document.ready(function(){})中的函数吗?
document.ready(function(){
function MyFunction()
{
alert("Hello");
}
});
<a href="#" onclick="javascript:MyFunction()"></a>
Run Code Online (Sandbox Code Playgroud)