草庐IT

windows - cwrsync 同步 : did not see server greeting

您好,我尝试使用ssh从Windows到Linux进行rsync,但我收到以下消息:rsync:没有看到服务器问候语我尝试了从linux到linux的rsyncssh,它有效。所以这是我在Windows上的命令:C:\Temp\cwRsync_5.5.0_x86_Free\bin>Rsync-av-e"./ssh-iC:\Temp\id_rsa"/cygdrive/c/Tempouistitis@192.168.1.12::.Enterpassphraseforkey'C:\Temp\id_rsa':rsync:didnotseeservergreetingrsyncerror:err

javascript - 为什么 greet 函数没有返回期望值?

问题:为什么greet函数没有返回预期值?代码:functionPerson(name){this.name=name;}Person.prototype.greet=function(otherName){return"Hi"+otherName+",mynameis"+name;}我该如何回答?我创建了一个新人,然后我该怎么办?varJohn=newPerson("John"); 最佳答案 错误的访问方法。undefinedvariablename,仅定义了this.name。所以它在函数范围内寻找一个名为name的变量,而不是