2017-08-26 144 views
0

当我尝试查看converse.js演示中,我得到了以下错误Internet Explorer 11支持converse.js吗?

converse.js和Internet Explorer 11的错误:

converse.js and Internet Explorer 11 error

更改兼容性设置不能解决问题。

我也已经安装在我的环境converse.js的副本,我试过清理尾随逗号作为在这篇文章中提出

Internet explorer errors: 'Expected identifier' and 'Object expected'

但后来,我得到不同的错误

错误在Internet Explorer 11 - 无尾逗号

Error in Internet Explorer 11 - without trailing commas

这是我的代码(通过Chrome或Firefox浏览时可以使用)。

任何人都可以建议我能做些什么使它在IE11中工作?可能吗?

<script type="text/javascript"> 



    converse.plugins.add('myplugin', { 
     initialize: function() { 
      var _converse = this._converse; 
      this._converse.api.waitUntil('connected').then(function() { 
       var chat = _converse.api.chats.open('[email protected]'); 
       console.log("function SENDING MESSAGE"); 
       var msg = converse.env.$msg({ 
        from: _converse.jid, 
        to:'[email protected]', 
        type:'chat' 
       }).c('body').t('hello world'); 
       _converse.api.send(msg); 
      }); 
     } 
    }); 


     converse.initialize({ 
      bosh_service_url: 'http://pcechlt46.pce.local:7070/http-bind/', 
      authentication: 'anonymous', 
      show_controlbox_by_default: true, 
      auto_login: true, 
      jid: 'pcechlt46.pce.local', 
      allow_muc: false, 
      allow_contact_requests: false, 
      allow_chat_pending_contact: true, 
      allow_non_roster_messaging: true, 
      allow_otr: false, 
      play_sounds: true, 
      sounds_path: '/converse/sounds/', 
      notification_icon: '/converse/logo/conversejs.png', 
      allow_muc_invitations: false, 
      show_desktop_notifications: true, 
      debug: true, 
      whitelisted_plugins: ['myplugin'], 
      // Blacklist plugins which aren't included in the build file, 
      // so that other code cannot register their own plugins under 
      // those names. 
      blacklisted_plugins: [ 
       "converse-bookmarks", 
       "converse-controlbox", 
       "converse-headline", 
       "converse-otr", 
       "converse-register", 
       "converse-vcard", 
      ] 
     }); 





</script> 
+0

看看是否修复格式错误的注释错误(标记)修复它.... IE9仿真模式和更低只支持条件注释...其他浏览器不使用或识别它们。 如果可能的话,包括一个复制网址与您的问题...... –

+0

你好罗布。格式错误的评论错误(第一张截图)显示在ConverJS DEMO网站上。我无法更改该页面的内容,但可以从任何地方访问。 https://conversejs.org/demo/anonymous.html 但是,在我本地的conversejs副本上,我没有对我的HTML发表任何评论,所以我没有收到与格式错误的评论相关的任何错误(第二张截图)。 谢谢。 – RMata

+0

您是否安装了Trend Micro AV? '加密未定义'是一个错误的趋势科技插件的IE的错误签名。请参阅此TechNet主题 - https://social.technet.microsoft.com/Forums/ie/en-US/db151c0b-c563-4244-a8e5-f6bd9361716b/ie-11-crashing-on-windows-7-x86-workstations -cryptnetdll?forum = ieitprocurrentver –

回答

0

只是一个更新。 JCBrand(ConverseJS开发人员)已确认此版本在IE11中不起作用,并将在未来版本中发布修复。

相关问题