<div class="app"></div> <script> var http = "你的名字"; // jquery会自动识别字符串中的标签 var p = `<p>${http}</p>`; $(".app").append(p) </script>