日期:2014-05-16  浏览次数:20665 次

初学者,js写的一个俄罗斯方块问题
本帖最后由 ontseason 于 2013-09-28 10:22:03 编辑
源码地址: http://paste.pound-python.org/show/A12fE3qDjeauUD3edlcT/

菜鸟。。看不懂那个getTable()函数 return  document.getElementById("area");
打死也没看出id=area的元素在哪....
俄罗斯方块 源码 js

------解决方案--------------------
//创建table td填充div根据HorizontalNum,VerticalNum的数量决定,创建HorizontalNum * VerticalNum的表格区域
                var table = document.createElement("table");
                table.id="area";

一般都是 搜索的 很少用看的