Difference between innerHTML and .html() from jQuery

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

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



        
3条回答
  •  青春惊慌失措
    2020-12-06 01:48

    I think this is the correct way:

    
    
    
    TEST LINK :-)

    Why you insert java script alert in to div?

提交回复
热议问题