Candy XMPP客户端Javascript错误

时间:2014-12-10 00:20:27

标签: javascript

我正在尝试运行糖果XMPP客户端,但调试器(firefox)说:

SyntaxError: missing ) after argument list

第25行是:

view: { assets: '../res/' }

对于这个javascript函数(我对javascript知之甚少)

    $(document).ready(function() {
        Candy.init('http://cheesecakeproductions.com/http-bind/', {
            core: {
                // only set this to true if developing / debugging errors
                debug: true,
                // autojoin is a *required* parameter if you don't have a plugin (e.g. roomPanel) for it
                //   true
                //     -> fetch info from server (NOTE: does only work with openfire server)
                //   ['test@conference.example.com']
                //     -> array of rooms to join after connecting
                autojoin: ['gen1@conference.cheesecakeproductions.com' ] }, 
            },
            view: { assets: '../res/' }
        });

1 个答案:

答案 0 :(得分:0)

您似乎是在Candy.init行之后提前关闭autojoin:的参数列表。

您似乎也错过了关闭})的{​​{1}}。

我建议:

Candy.init('...',{