0

我正在处理多维数据集库以显示多维数据集....我遇到错误....未捕获的 ReferenceError: Gallery is not defined fiddle.jshell.net:722

如何修复错误.....\

我的小提琴也在下面

http://jsfiddle.net/N3GTy/12/

在下面提供我的代码

<script type="text/javascript">
            /*
            |------------------------------------------|
            | MelonHTML5 - 3D Cube Gallery             |
            |------------------------------------------|
            | @author:  Lee Le (lee@melonhtml5.com)    |
            | @version: 1.02 (09 Jan 2013)             |
            | @website: www.melonhtml5.com             |
            |------------------------------------------|
            */
            Gallery = {
                _config: {
                    speed: 500,
                    size: 100,
                    lightbox: !0,
                    closeOnEsc: !0,
                    animation: "default",
                    slideshow: !1,
                    slideshow_speed: 3E3,
                    cube_speed: 1E3
                },
                lightbox_speed: 300,
                window_width: null,
                window_height: null,
                _cube_timeout: null,
                _gallery: null,
                _overlay: null,
                _lightbox: null,
                _current: null,
                _in_slideshow: !1,
                init: function() {
                    Gallery._buildContainer(!0, !0);
                    Gallery.window_width = $(window).width();
                    Gallery.window_height = $(window).height();
                    $(document).keydown(Gallery.Events.keyDown);
                    $(window).resize(Gallery.Events.windowResize);
                    Gallery._startCube()
                },
4

1 回答 1

0

你打电话Gallery.setOptions({...})之前Gallery甚至被定义。

于 2013-02-07T23:26:44.380 回答