JQuery html() vs. innerHTML

后端 未结 7 1958
不知归路
不知归路 2020-11-28 22:08

Can I completely rely upon jQuery\'s html() method behaving identical to innerHTML? Is there any difference between innerHTML and jQue

7条回答
  •  执笔经年
    2020-11-28 22:51

    innerHTML is not standard and may not work in some browsers. I have used html() in all browsers with no problem.

提交回复
热议问题