我正在尝试运行糖果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/' }
});
答案 0 :(得分:0)
您似乎是在Candy.init
行之后提前关闭autojoin:
的参数列表。
您似乎也错过了关闭})
的{{1}}。
我建议:
Candy.init('...',{