摘要:
1. let data = {"terminalCode":"T0014077","terminalName":"测试门店4","licenseName":"山西太原XXX超市","terminalAddress":"山西太原杏花岭","shopkeeperName":"马宇","shopkeepe 阅读全文
摘要:
一、js判断一个对象是否为空 方法一: let obj1 = {} let obj2 = {a:1} function empty(obj){ for (let key in obj){ return false; //非空 } return true; //为空 } console.log(emp 阅读全文
摘要:
1.将json对象转化为json字符串,再判断该字符串是否为"{}"var data = {};var b = (JSON.stringify(data) == "{}");alert(b);//true2.for in 循环判断var obj = {};var b = function() {fo 阅读全文