var arr =[];
Array.prototype.isPrototypeOf(arr) && arr.length != 0
判断你的原型是不是数组,或者数组的长度是不是0
var arr =[];
Array.prototype.isPrototypeOf(arr) && arr.length != 0
判断你的原型是不是数组,或者数组的长度是不是0
本文标题:如何准确的判断你得到的是不是空数组
本文链接:https://www.haomeiwen.com/subject/zozwrctx.html
网友评论