jquery: fastest DOM insertion?

后端 未结 8 1471
长情又很酷
长情又很酷 2020-12-04 16:45

I got this bad feeling about how I insert larger amounts of HTML. Lets assume we got:

var html=\"

....
\"
8条回答
  •  没有蜡笔的小新
    2020-12-04 17:24

    You mention being interested in alternatives. If you look at the listing of DOM-related jQuery plugins you'll find several that are dedicated to programatically generating DOM trees. See for instance SuperFlyDom or DOM Elements Creator; but there are others.

提交回复
热议问题