Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/385.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 如何修复LiveChatInc语法错误?_Javascript - Fatal编程技术网

Javascript 如何修复LiveChatInc语法错误?

Javascript 如何修复LiveChatInc语法错误?,javascript,Javascript,在Chrome中,我收到了以下错误: SyntaxError:的第1行出现意外标识符_https://secure.livechatinc.com/licence/(mylicense)/script.cgi?lang=en&groups=0 该脚本的响应是: LIVECHAT Control Server xxxxxx (May 26 2015) 下面是添加script.cgi文件的脚本 <script type="text/javascript"> //<![CDA

在Chrome中,我收到了以下错误:
SyntaxError:的第1行出现意外标识符_https://secure.livechatinc.com/licence/(mylicense)/script.cgi?lang=en&groups=0

该脚本的响应是:

LIVECHAT Control Server xxxxxx (May 26 2015)
下面是添加script.cgi文件的脚本

<script type="text/javascript">
  //<![CDATA[
    (function() {
      var license = 'mylicense',
          params = '',
          lang = 'en',
          skill = '0';

      __lc_load = function (p) { if (typeof __lc_loaded != 'function')
        if (p) { var d = document, l = d.createElement('script'), s = d.getElementsByTagName('script')[0], a = unescape('%26'),
          h = ('https:' == d.location.protocol ? 'https://' : 'http://'); l.type = 'text/javascript'; l.async = true;
          l.src = h + 'gis' + p +'.livechatinc.com/gis.cgi?serverType=control'+a+'licenseID='+license+a+'jsonp=__lc_load';
          if (typeof p['server'] == 'string' && typeof __lc_serv != 'string') {
            l.src = h + (__lc_serv = p['server']) + '/licence/'+license+'/script.cgi?lang='+lang+a+'groups='+skill;
            l.src += (params == '') ? '' : a+'params='+encodeURIComponent(encodeURIComponent(params)); s.parentNode.insertBefore(l, s);
          } else setTimeout(__lc_load, 1000); typeof __lc_serv != 'string' && s.parentNode.insertBefore(l, s);
        } else __lc_load(Math.ceil(Math.random()*5)); }
      __lc_load();
    })();
  //]]>
  </script>

//
插入的代码是:

<script type="text/javascript" async="" src="https://secure.livechatinc.com/licence/mylicense/script.cgi?lang=en&amp;groups=0"></script>

我在LiveChat工作,我检查了这个问题。我注意到您正在使用旧代码,这可能就是问题的原因。请尝试从这里获取新的:

这应该会有帮助,但如果您有任何问题,您可以访问我们的网站并与我们聊天:)

问候


Agnieszka/LiveChat

我在LiveChat工作,我检查了这个问题。我注意到您正在使用旧代码,这可能就是问题的原因。请尝试从这里获取新的:

这应该会有帮助,但如果您有任何问题,您可以访问我们的网站并与我们聊天:)

问候


Agnieszka/LiveChat

最近也开始看到这个错误。你找到解决方法了吗?最近也开始看到这个错误。你找到解决方法了吗?最近也开始看到这个错误。你找到解决办法了吗?