企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# isEmptyObj ## 判断变量是否为空对象 > yunj.isEmptyObj(obj) 说明:判断变量是否为空对象。返回bool类型结果。 > 参数 参数类型必须说明objmixed是变量> 示例: ``` <pre class="calibre19">``` layui<span class="token2">.</span><span class="token6">use</span><span class="token2">(</span><span class="token2">[</span><span class="token3">'yunj'</span><span class="token2">]</span><span class="token2">,</span><span class="token1">function</span> <span class="token2">(</span><span class="token2">)</span><span class="token2">{</span> <span class="token1">let</span> obj<span class="token4">=</span><span class="token2">{</span><span class="token2">}</span><span class="token2">;</span> console<span class="token2">.</span><span class="token6">log</span><span class="token2">(</span>yunj<span class="token2">.</span><span class="token6">isEmptyObj</span><span class="token2">(</span>obj<span class="token2">)</span><span class="token2">)</span><span class="token2">;</span> <span class="token">// true</span> <span class="token2">}</span><span class="token2">)</span><span class="token2">;</span> ``` ```