English 中文(简体)
标签:的问答
j 质量——为什么通过扼制(<div category=“foo”/>)来制造同级物体,比制造同样的物体和执行添加标记法要慢?
原文:jQuery - Why creating object with class by string ($( <div class="foo" /> )) is slower than creating same object and execute addClass() method?

Can anyone may explain me why creating object via string is slower than same object and execute addClass() method in jQuery? I thought that addClass() method will be slower, but it is not. I m ...

热门标签