Weebly Uncaught SyntaxError:意外标记<;在JSON中的位置0

Weebly Uncaught SyntaxError:意外标记<;在JSON中的位置0,json,unity3d,syntax-error,weebly,unexpected-token,Json,Unity3d,Syntax Error,Weebly,Unexpected Token,我正在尝试为我的Weebly站点实现我的unity应用程序。我遵循了本教程: 我有两个密码: 一, 当我尝试加载Weebly的嵌入代码所在的页面时,Chrome会弹出一个窗口,其中显示:Uncaught SyntaxError:Unexpected token

我正在尝试为我的Weebly站点实现我的unity应用程序。我遵循了本教程:

我有两个密码:

一,

当我尝试加载Weebly的嵌入代码所在的页面时,Chrome会弹出一个窗口,其中显示:
Uncaught SyntaxError:Unexpected token<在JSON中的位置0。


如何修复此问题?

您正在使用的URL有一个空格。正确的URL没有

更改此项:

var gameInstance = UnityLoader.instantiate("gameContainer", 
"https://pamaentertainment.weebly.com/files/theme/Build/Learning Effectiveonline.json");
为此:

var gameInstance = UnityLoader.instantiate("gameContainer", 
"https://pamaentertainment.weebly.com/files/theme/Build/LearningEffectiveonline.json");

您需要设置一个web服务器

IIS-在web.config文件中:

<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
<mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />


我修复了URL,但随后出现以下错误:未捕获的语法错误:意外标记
var gameInstance = UnityLoader.instantiate("gameContainer", 
"https://pamaentertainment.weebly.com/files/theme/Build/LearningEffectiveonline.json");
<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
<mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
AddType application/octet-stream unityweb
AddType application/json json