Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/470.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 参数列表后出现意外标记(缺少)_Javascript_Android_Html - Fatal编程技术网

Javascript 参数列表后出现意外标记(缺少)

Javascript 参数列表后出现意外标记(缺少),javascript,android,html,Javascript,Android,Html,我的应用程序在多台设备上的phonegap移植版本有问题。在某些设备上,错误(警报)为“参数列表后缺少”,而在其他设备上为“意外令牌=>” { (除非:(已保存的游戏:)包含$\u autosave\u插槽和(数据值:(已保存)- 游戏:)包含$\u autosave\u filename)[(转到:$\u start\u passage] }''[[新->$\u开始\u段落]] (链接:“继续”)[(加载游戏:$\u自动保存\u插槽)] '' 函数closeMeNow(){navigato

我的应用程序在多台设备上的phonegap移植版本有问题。在某些设备上,错误(警报)为“参数列表后缺少”,而在其他设备上为“意外令牌=>”

{

(除非:(已保存的游戏:)包含$\u autosave\u插槽和(数据值:(已保存)- 游戏:)包含$\u autosave\u filename)[(转到:$\u start\u passage] }''[[新->$\u开始\u段落]]
(链接:“继续”)[(加载游戏:$\u自动保存\u插槽)] ''

函数closeMeNow(){navigator.app.exitApp();}
我通过将我的其他JS代码添加到生成的.html文件或作为外部源代码,而不是直接添加到我使用的引擎中来修复它。

我建议在html和代码中查找浏览器中看到的错误。大多数pc浏览器在按F12键时都会显示此信息。错误可能在所有浏览器上都存在,但只有一些浏览器会向用户显示错误。
{   <div class="container home-menu">
    <div class="row content-1">
        <div class="col-xs-12 text-center">
            <!-- Menu -->
            <img style="height:90px;" src="res/images/splash_logo.png"/><br>
(unless: (saved-games:) contains $_autosave_slot and (datavalues: (saved-
games:)) contains $_autosave_filename)[(goto: $_start_passage)]
}''<span class="home-button">[[New->$_start_passage]]</span><br>
<span class="home-button">(link: "Continue")[(load-game: $_autosave_slot)]
</span>''<br><a href="#" onClick="closeMeNow();" class="home-
button">Exit</a>
            <!-- Credits -->
<div class="bottom-links"><a href="contact.html"><span style="color: 
white;">some text</span></a><br>
            <a href="credits.html"><span style="color: white;">some text</span></a></div>
        </div>
    </div>      
</div>
<script> function closeMeNow() { navigator.app.exitApp();} </script>