提交 87870ec8 编写于 作者: R Robert

Display correct element number.

Per a suggestion on the Google+ post about this example, this change fixes the incorrect element numbers displayed on the table.
上级 223f46bd
......@@ -262,7 +262,7 @@
var number = document.createElement( 'div' );
number.className = 'number';
number.textContent = i + 1;
number.textContent = (i/5) + 1;
element.appendChild( number );
var symbol = document.createElement( 'div' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册