判断数据是否为空 支持复杂数据类型 llt_is_null const {is_data_null} = require('llt_is_null') var opj1 = { a:'1', b:'[1,2]', c:[{sada:'1'}], a2:{"a":2}, } var opj2 = { a:'1', c:{ a:'', c:'1' } } /** *参数1 需要判断的字段 * 参数2 需要过滤的字段 * 参数全部都是对象格式 * */ console.log(is_data_null(opj1)); 发布NPM命令 npm login //登录之后执行命令 npm publish