JavaScript和jQuery改变标签内容

HTML:

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

JavaScript:

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

jQuery:

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

1 条评论

  1. reviewer
    Luther
    2017年5月8日

    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 🙂

    回复

发表评论

您的电子邮箱地址不会被公开。