miniprogram-to-uniapp icon indicating copy to clipboard operation
miniprogram-to-uniapp copied to clipboard

微信小程序for循环转换异常

Open jialeens opened this issue 1 year ago • 1 comments

问题描述?

image

重现步骤

原始代码

validityLength(){
    let _this=this;
    var bjbdx= this.data.dataSoures;
    for (let j = 0, lenJ = bjbdx.length; j < lenJ; ++j) {
      ...
  },

转换后代码

validityLength() {
            let _this = this;
            var bjbdx = this.dataSoures;
            for (
                (function () {
                    let lenJ = bjbdx.length;
                })();
                j < lenJ;
                ++j
            ) {
                ...
        },

期望的结果

应该转换成一样的

jialeens avatar May 18 '23 09:05 jialeens

收到,我先测试一下

zhangdaren avatar Jun 28 '23 02:06 zhangdaren