With jQuery , I can use \[code\]$(sel).html(html)\[/code\] to produce an html area.Without jquery , I can do the same thing by \[code\]dom.innerHTML = html;\[/code\]
I also found \[code\]$(sel).html()\[/code\] is slower than \[code\]dom.innerHTML\[/code\], but why?What's the differences between \[code\]$(sel).html\[/code\] and \[code\]dom.innerHTML\[/code\]?
Is it safe to use \[code\]dom.innerHTML\[/code\] replace \[code\]$(sel).html\[/code\]?
I also found \[code\]$(sel).html()\[/code\] is slower than \[code\]dom.innerHTML\[/code\], but why?What's the differences between \[code\]$(sel).html\[/code\] and \[code\]dom.innerHTML\[/code\]?
Is it safe to use \[code\]dom.innerHTML\[/code\] replace \[code\]$(sel).html\[/code\]?