How to refresh EJS template page locally?

  node.js, question

Ajax request is triggered normally, Node.js takes data successfully, $(“#contentBox”).html(rs) is blank, and $ (“# contentbox”). html (RS [0]. flownum) can print data. I don’t know how to write this paragraph, please give me some advice!
The code is as follows:

$(".searchElement").change(function() {
 var url = "/Admin/CustomerOrder/Auto/";
 $.get(url, {
 status:  $("#status").val(),
 fromTime: $("#fromTime").val(),
 toTime:  $("#toTime").val(),
 }, function(rs) {
 $("#contentBox").html(rs);
 });
 });
<tbody id="contentBox">
 < percentage RS. foreach (item) {percentage >
 <tr>
 < td class="text-center "> < percentage = item.flowingNum percentage > < /td >
 </tr>
 < percent}) percent >
 </tbody>

The data returned after issuing the AJAX request is as follows:
图片描述

var html=”; //self-spliced Html string
$(“#contentBox”).html(html);
= = = 2016-03-21 13: 28 Update = = = =
The result of your request /Admin/CustomerOrder/Auto/ is Json.
If the Express framework is adopted in the background, res.render(‘view’) can be used; Returns rendered html.
Then you can directly $(“#contentBox”).html(html); The