Difference between innerHTML and .html() from jQuery

前端 未结 3 1451
难免孤独
难免孤独 2020-12-06 01:22

Can somebody tell what is the difference between jquery .html() function and innerHTML?



        
3条回答
  •  有刺的猬
    2020-12-06 02:08

    Setting the innerHTML property does not execute scripts.

    jQuery contains special code to execute scripts for you.

提交回复
热议问题