开发者

iPad javascript engine ? table rendering flicker

I experience a "flicker开发者_JS百科" (not instant rendering/update) when using simple replaceChild in a table update on the iPad.

Table contains at most 100 rows but this behavior starts at 35 rows on the (iPad 1)

code simplified

tbl = document.getElementById('table1');
tbl_fragment = document.createDocumentFragment(); // contains the rows and cells

tbody = document.createElement("tbody");        
tbody.appendChild(tbl_fragment);

old_tbody = tbl.tBodies[0];

tbl.replaceChild(tbody, old_tbody);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜