摘要: 1.将json对象转化为json字符串,再判断该字符串是否为"{}"var data = {};var b = (JSON.stringify(data) == "{}");alert(b);//true2.for in 循环判断var obj = {};var b = function() {fo 阅读全文
posted @ 2018-06-22 14:19 晨子语 阅读(964) 评论(0) 推荐(0) 编辑