.html() and .append() without jQuery

前端 未结 6 1963
野趣味
野趣味 2020-12-05 09:34

Can anyone tell me how can I use these two functions without using jQuery?

I am using a pre coded application that I cannot use jQuery in, and I need to take HTML fr

6条回答
  •  眼角桃花
    2020-12-05 10:23

    .html() and .append() are jQuery functions, so without using jQuery you'll probably want to look at document.getElementById("yourDiv").innerHTML

    Javascript InnerHTML

提交回复
热议问题