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)
本文标题:判断一个json是否为空
本文链接:https://www.haomeiwen.com/subject/essffctx.html
网友评论