(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