Skip to Main Content
Wydajny JavaScript.
book

Wydajny JavaScript.

by Nicholas C. Zakas
September 2016
Intermediate to advanced content levelIntermediate to advanced
224 pages
7h 33m
Polish
APN Promise
Content preview from Wydajny JavaScript.
44 | Rozdział 3: Skrypty w modelu DOM
tworzenie powtarzających się elementów, anastępnie ich kopiowanie, daje wwyniku
nieco szybsze czasy wykonania:
• 2%wIE8,alebezróżnicywIE6iIE7
• Do5,5%wFirefox3.5orazSafari4
• 6%wOpera(alebezoszczędnościwOpera10)
• 10%wChrome2i3%wChrome3
Ilustracją jest tutaj częściowy listing kodu generowania tabeli zapomocą
element.
cloneNode()
:
function tableClonedDOM() {
var i, table, thead, tbody, tr, th, td, a, ul, li,
oth = document.createElement('th'),
otd = document.createElement('td'),
otr = document.createElement('tr'),
oa = document.createElement('a'),
oli = document.createElement('li'), ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Wszechstronny JavaScript

Wszechstronny JavaScript

Adam D. Scott
Programowanie w JavaScript Rusz głową!

Programowanie w JavaScript Rusz głową!

Eric Freeman, Elisabeth Robson

Publisher Resources

ISBN: 9788375413113