JS如何判断json是否为空
摘要:1、判断json是否为空 jQuery.isEmptyObject(); 2、遍历json function getHsonLength(json{ var jsonLength=0; for (var i in json){ jsonLength++; } return jsonLength; }
阅读全文
posted @ 2017-08-24 16:33
posted @ 2017-08-24 16:33
posted @ 2017-08-22 10:19