小编bun*_*ven的帖子

如何解决'FB未定义'?

有时我在加载http://connect.facebook.net/en_US/all.js时遇到"FB未定义"问题

我意识到问题是因为有时我的网站只是没有加载该文件.所以它什么都没有,而FB对象确实不存在.

我的解决方案是在发生这种情况时阻止我的用户,所以我在JavaScript中尝试了以下代码但似乎没有工作:

if (FB) {/*run the app*/} else {/*alert the user*/}
if (FB!==false) {/*run the app*/} else {/*alert the user*/}
if (FB!='undefined') {/*run the app*/} else {/*alert the user*/}
Run Code Online (Sandbox Code Playgroud)

谢谢你的回答!

javascript facebook

32
推荐指数
4
解决办法
10万
查看次数

Gitkraken无法使用本地SSH代理

我最近更改了我的GitHub用户名,当我尝试使用身份验证>使用本地SSH代理时,GitKraken推送失败并出现以下错误:

Push Failed
Configured SSH key is invalid. 
Please confirm that it is properly associated with your git provider.
Run Code Online (Sandbox Code Playgroud)

取消选择该选项会显示位于的私钥/公钥对

~/.ssh/id_rsa
~/.ssh/id_rsa.pub
Run Code Online (Sandbox Code Playgroud)

并允许推动完成.

我也可以从Eclipse内部推送,并通过命令行无错误地推送.存储库的URL指向我的新用户名.

到目前为止,我已经检查了几件事:

ssh -T github.com
Run Code Online (Sandbox Code Playgroud)

给予许可否认

id_rsa.pub的指纹与Github帐户中存在的密钥匹配.

以下命令表明ssh工具尝试rsa私钥,但被拒绝:

$ ssh -vT github.com
debug1: Offering RSA public key: /home/<user>/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/<user>/.ssh/id_dsa
debug1: Trying private key: /home/<user>/.ssh/id_ecdsa
debug1: Trying private key: /home/<user>/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

在这种情况下导致ssh -vT失败的原因是什么,为什么它不会阻止git push/pull但是当GitKraken尝试推送时失败?

eclipse github gitkraken

6
推荐指数
2
解决办法
7011
查看次数

标签 统计

eclipse ×1

facebook ×1

github ×1

gitkraken ×1

javascript ×1