老师帮忙看下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <!DOCTYPE html> < html > < head > < meta charset = "utf-8" > < title >变量、作用域</ title > </ head > < body > < script type = "text/javascript" > var a = {name: 'xm'}, b = [4]; b.push(a); document.write(b); document.write("< br >"); a=[]; a.push(b[0]) b=b[1]; document.write(b.name); document.write("< br >"); document.write(a[0]); document.write("< br >"); document.write(a instanceof Array); </ script > </ body > </ html > |
0
收起
正在回答 回答被采纳积分+1
1回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧