!DOCTYPE html html head title/title /head body /body script type="text/javascript" var table1= ; var table2= ; var table3= ; //根据lineid把table2合并到table1// table2.forEach(function(o,d){ table1.forEach(function(t){ ...
var 关键字 1.没有块级作用域 { var a = 10; } //= 外面可以拿到 a 这个变量的值 console.log(a); //= 10 2.var 有变量提升 console.log(a); //= undefined if(true) { //= var关键字不存在块级作用域,会导致变量提升 var a = 10; } 3.var 可以重复声明 var a = 10; var a = 20 ...