安卓 Symbol is not defined;sdk catch error
发布于 6 年前 作者 qiaogang 20118 次浏览 来自 问答

                        //ES5
                        // for(let i=0; i<_list.length; i++){
                        //     let item = _list[i];
                        //      if (item.isCorrect) {
                        //         if (item.isCorrect) {
                        //             correctCount++;
                        //         } else {
                        //             errorCount++;
                        //         }
                        //     }
                        // }

                        //ES6
                        for (let item of _list) {
                            if (item.isCorrect) {
                                if (item.isCorrect) {
                                    correctCount++;
                                } else {
                                    errorCount++;
                                }
                            }
                        }

ES编译时报错,Symbol is not defined;sdk catch error,机型oppoR7 安卓版本4.4.4 ColorOS版本2.1

2 回复

Android 上还不支持 for of这样的写法

微信官方团队能修复这个问题吗,项目用了太多for了

回到顶部