Home  >  Article  >  Web Front-end  >  初学者,js写的一个俄罗斯方块问题_html/css_WEB-ITnose

初学者,js写的一个俄罗斯方块问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:181144browse

本帖最后由 ontseason 于 2013-09-28 10:22:03 编辑

俄罗斯方块 源码 js

源码地址: http://paste.pound-python.org/show/A12fE3qDjeauUD3edlcT/

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

回复讨论(解决方案)

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn