<script>var b = 'test';var a = b || {};alert(a)</script>
结果:test
<script>var b;var a = b || {};alert(a)</script>
结果:object