(cdn_url = "", LazyLoad.js("maps/map0.js" {maps_loaded[0] = true}))
口口声声说未捕获SyntaxError: Unexpected token {
未捕获的SyntaxError:意外的标记{
现在说,它缺少[
全线飘红:
if (("" == window.location.port || "80" == window.location.port) && !/\/wiki/.test(window.location.pathname)) window.location = window.location.protocol + "//" + window.location.hostname + ":" + config.http_port + window.location.pathname;
var map = [],
on_map = [],
maps_loaded = {}, cdn_url = "localhost";
"80" != window.location.port ? (cdn_url = "", LazyLoad.js("maps/map0.js", {
maps_loaded[0] = true
})) {
maps_loaded[0] = true
})) : LazyLoad.js(cdn_url + "maps/map0.js?" + map_hashes[0], function() {
maps_loaded[0] = true
});
错误的json字符串,最有可能的。显示你正在抓取的内容,或者尝试通过jsonlint.org –
运行它[Uncaught SyntaxError:Unexpected identifier]的可能重复(http://stackoverflow.com/questions/14427372/uncaught-syntaxerror-unexpected-identifier) – VisioN
你有昨天又问了同样的问题。我想我给了你很直接的答案。 – VisioN