简体   繁体   English

googleweblight 不执行 OnClick JavaScript 函数

[英]googleweblight not executing OnClick JavaScript Function

Following JavaScript call function not working in googleweblight以下 JavaScript 调用函数在googleweblight 中不起作用

<a href="javascript:FBLogin();" class="btn btn-sm azm-social azm-btn azm-facebook"><i class="fa fa-facebook"></i> Facebook ID</a>

or或者

<a onclick="FBLogin()" href="#" class="btn btn-sm azm-social azm-btn azm-facebook"><i class="fa fa-facebook"></i> Facebook ID</a>

What may be issue?可能有什么问题? is it possible to fix it?有没有可能修复它?

For a example http://jsfiddle.net/zalun/Yazpj/1/ It will work,例如http://jsfiddle.net/zalun/Yazpj/1/它会工作,

but same link wont work in googleweblight http://googleweblight.com/?lite_url=http://jsfiddle.net/zalun/Yazpj/1/但相同的链接在 googleweblight 中不起作用http://googleweblight.com/?lite_url=http://jsfiddle.net/zalun/Yazpj/1/

Javascript seems to be disabled in googleweblight, if you want to see in detail then you can look at your site by this Javascript 似乎在 googleweblight 中被禁用,如果您想详细查看,那么您可以通过此查看您的网站

http://googleweblight.com/?lite_url=[your_website_URL]

example http://googleweblight.com/?lite_url=https://stackoverflow.com/示例http://googleweblight.com/?lite_url=https://stackoverflow.com/

Well, you can opt out of it but in such case google will label your page in the search results to indicate to users that non-transcoded pages may take longer to load and may use more data.好吧,您可以选择退出它,但在这种情况下,谷歌会在搜索结果中标记您的页面,以向用户表明未转码的页面可能需要更长时间才能加载并可能使用更多数据。

You can find more details here https://support.google.com/webmasters/answer/6211428?hl=en您可以在此处找到更多详细信息https://support.google.com/webmasters/answer/6211428?hl=en

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM