不应该是返回true嘛?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
建议你的相关代码按照自己的计算顺序加个括号
var currentIndex;console.log(currentIndex); console.log("type of "+(typeof(currentIndex)=== "undefined"))
楼上第二个问题描述错误~~~
我的,煞笔了