JQuery 将div中的内容替换掉 $("#div2").children().replaceWith($("#userText").val());谷歌没有效果。 $("#div2").html($("#userText").val());可以