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();
    }

    

原文地址:https://www.cnblogs.com/maxwell-xu/p/9870750.html