显示独立模块无法正常工作

时间:2014-09-09 22:36:40

标签: jquery zurb-foundation zurb-reveal

我使用Reveal模块已经使用了Zurb Plaground Site(http://zurb.com/playground/reveal-modal-plugin)的原始版本超过一年了,但我一直遇到一些问题因此决定尝试使用基础版。我发现我可以只下载插件,所以我这样做了,但是当我尝试使用它时没有任何反应。 :/

我按照http://foundation.zurb.com/docs/components/reveal.html

上的文档进行操作

我确实修改了一些CSS,但这应该没有任何区别?

您可以在http://www.safewise.co.nz/trainwise/test/

看到演示

任何人都可以帮助我开始运行吗? :)

我尝试将此帖子发布到基金会论坛,但发布按钮无效

修改

我刚刚发现调试时出现以下错误?

Uncaught Error: Syntax error, unrecognized expression: [data-'Times New Roman'-reveal] jquery.js:1924
at.error jquery.js:1924
bt jquery.js:2527
At jquery.js:2914
at jquery.js:1283
at.matches jquery.js:1862
x.extend.filter jquery.js:5945
ft jquery.js:5995
x.fn.extend.is jquery.js:5783
a foundation.min.js:8
Foundation.libs.reveal.init foundation.reveal.js:40
t.Foundation.init_lib foundation.min.js:8
t.Foundation.init foundation.min.js:8
(anonymous function) foundation.min.js:8
x.extend.each jquery.js:657
x.fn.x.each jquery.js:266
e.fn.foundation foundation.min.js:8
(anonymous function) (index):23

1 个答案:

答案 0 :(得分:2)

我在http://foundation.zurb.com/forum/posts/2112-foundation-5100-syntax-error-in-js

找到答案
$(function(){
    Foundation.global.namespace = '';
    $(docment).foundation();
});
相关问题