<script>
var b = ‘test‘;
var a = b || {};
alert(a)
</script>
结果:test
<script>
var b;
var a = b || {};
alert(a)
</script>
结果:object
时间: 2024-11-05 11:37:37
<script>
var b = ‘test‘;
var a = b || {};
alert(a)
</script>
结果:test
<script>
var b;
var a = b || {};
alert(a)
</script>
结果:object