egret 微信小游戏 错误


1,使用jszip错误

     (1)   t.createElementNS is not a function

    修改:webapp-adapter.js,增加一个方法

     createElementNS: function createElementNS(nameSpace, tagName) {

       return this.createElement(tagName)

     }

  (2)   ReferenceError: JSZip is not defined

    修改jszip.js开头部分为

    !function (a) { if ("object" == typeof exports && "undefined" != typeof module){
      window.JSZip = a();
      module.exports = a();
    }

    


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM