0

我收到以下控制台错误

(未捕获的 SyntaxError:无效或意外令牌)

在我的暂存环境中,但不在我的 DEV 或 TEST 环境中。有任何想法吗?我完全被难住了。

    <script>
            $(document).ready(function(){
            $.sessionTimeout({
                warnAfter: 1500000, // 5000 (10 seconds) | 1500000 (25 minutes)
                redirAfter: 1800000, // 15000 (20 seconds) | 1800000 (30 minutes)
                Line Highlighted --- > keepAliveUrl: '[URL.Path]/keepalive.cfm',
                logoutUrl: '[URL.Path]/logout.cfm',
                redirUrl: '[URL.Path]/logout.cfm?sessiontimeout=[URL.Path]/removeddashboard.cfm%3F',
                countdownMessage: 'Your session will expire in {timer}',
                message: 'Please be advised that per OIMT guidelines, sessions of inactivity for applications can be no longer than 30 minutes.'
                });
            });
            </script>

另外,有谁知道为什么浏览器会切断字符串并将其分成两行,这可能是问题吗?

4

1 回答 1

0

我将 URL 设置为相对路径以使其更短,并且错误问题消失了。

于 2020-11-06T16:06:49.510 回答