【问题标题】:localhost facebook app development, jquery not workinglocalhost facebook 应用程序开发,jquery 不工作
【发布时间】:2013-08-01 19:53:32
【问题描述】:
$(document).ready(function(){
    alert('testing');
});

错误说明;

-- Uncaught ReferenceError: $ is not defined

-- 阻止源为“https://s-static.ak.facebook.com”的帧访问源为“http://www.facebook.com”的帧。请求访问的帧具有“https”协议,被访问的帧具有“http”协议。协议必须匹配。

jQuery 不工作.. 有什么问题?

【问题讨论】:

  • 你是否包含了 jquery 文件?

标签: jquery facebook localhost


【解决方案1】:

确保您首先链接到 jquery.js 文件。如果它仍然不起作用,请尝试使用 'jQuery' 关键字而不是 $ 像这样:

jQuery(document).ready(function(){
    alert('testing');
});

【讨论】:

  • 我试过了。仍然没有工作 :S 我的英语很糟糕 :) 对此我很抱歉。至于我..问题协议相关(http / https)。但我不知道解决方案
猜你喜欢
  • 1970-01-01
  • 2014-02-13
  • 2011-02-13
  • 1970-01-01
  • 1970-01-01
  • 2013-04-24
  • 1970-01-01
  • 2014-01-21
相关资源
最近更新 更多