jquery 判断数组是否为空
if (data.length === 0) { console.log("数组为空"); }
原文:https://www.cnblogs.com/GetcharZp/p/11866431.html