Hi FE !
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
  • (a== 1 && a ==2 && a==3)可能为true吗?

(a== 1 && a ==2 && a==3)可能为true吗?

let a = { i:1, toString() { return this.i ++; } } if(a == 1 && a == 2 && a == 3) { console.log("112") }

用 toString 或 valueOf

Edit this page
最近更新: 2025/10/17 02:02
Contributors: qdleader
qdleader
本站总访问量 129823次 | 本站访客数 12人