JavaScript和jQuery改变标签内容

HTML:

<div id="mazey">content</div>

JavaScript:

var mazey=document.getElementById("mazey");
mazey.innerHTML=data;

jQuery:

$("#mazey").html(data);

1 Comment

  1. reviewer
    Luther
    五月 08, 2017

    Very nice post and straight to the point. I don’t know
    if this is really the best place to ask but do you folks have any ideea where to get some
    professional writers? Thx 🙂

    回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注