const jumpPermissionList = [".openadsdk.permission.TT_PANGOLIN", "com.hihonor.permission"]
for (let x in jumpPermissionList) {
console.log("for x:",x)
if (permission.includes(jumpPermissionList[x])) {
jumpPermission = true
console.log("includes:",jumpPermission)
}
}

 console.log("for  x:",x)

打印出来的x 居然不是子元素。而是子元素索引

JavaScript 中的for in_ecmascript

 

这和python不太一样

Python打印出来是子元素