判断一个json是否为空
2019-06-11 本文已影响0人
我是syq吖
var obj ={"name":"冯娟","password":"123456","department":"技术部","sex":"女","old":30};
var jsonStr = {};
//判断一个json是否为空
var a = (JSON.stringify(obj)==="{}");
alert(a)
var obj ={"name":"冯娟","password":"123456","department":"技术部","sex":"女","old":30};
var jsonStr = {};
//判断一个json是否为空
var a = (JSON.stringify(obj)==="{}");
alert(a)