What is the difference between .empty().append() and .html()?

前端 未结 6 1224
心在旅途
心在旅途 2020-12-18 08:27

Using jQuery, what\'s the performance difference between using:

$(\'#somDiv\').empty().append(\'text To Insert\')

and

$(\'         


        
6条回答
提交回复
热议问题