标签:
<script>var b = ‘test‘;var a = b || {};alert(a)</script>
结果:test
<script>var b;var a = b || {};alert(a)</script>
结果:object
js isnull 赋值方法
原文地址:http://www.cnblogs.com/niutouzdq/p/4820900.html