微信小游戏5.2.2 没有xml支持库的问题解决 需要下载xml支持库,并在game.js添加 window.DOMParser = require("./xmldom/xmldom.js").DOMParser; 如下图: