qwqoffice / html2wxml

用于微信小程序的HTML和Markdown格式的富文本渲染组件,支持代码高亮
https://www.qwqoffice.com/article.php?mod=view&tid=40
GNU General Public License v2.0
231 stars 86 forks source link

请求https://www.qwqoffice.com/html2wxml/ 返回的数据模拟器和真机不一致 #16

Closed guozimo closed 4 years ago

guozimo commented 5 years ago

swan.request({ url: 'https://www.qwqoffice.com/html2wxml/', data: data, method: 'POST', header: { 'content-type': 'application/x-www-form-urlencoded' }, 返回的数据 模拟器和真机不一致 真机器 返回的代码片数据 是 text 数据是下面

for (var i = 0; i < oLis.length; i++) {
        oLis[i].index = i;
        oLis[i].onclick = function () {
            var _this = this;
            for (var k = 0; k < oImgs.length; k++) {
                if (k != _this.index) {
                    oImgs[k].className = null;
                }
            }
            oImgs[_this.index].className = "move move" + (_this.index + 1);
        }
    }

请尽快解决一下

qwqoffice commented 5 years ago

请提供请求的data