@@ -120,7 +120,19 @@
$(".free_service").show();
}
});
-
+
+ //
+ function checkObj(obj) {
+ //检验数组
+ if (Array.prototype.isPrototypeOf(obj) && obj.length === 0) {
+ return true;
+ }
+ //检验对象
+ if (Object.prototype.isPrototypeOf(obj) && Object.keys(obj).length === 0) {
+ return false;
</script>
</body>