私のphpページのテーブルにいくつかのデータを追加しています。データはWebページに表示されます。それで大丈夫です。次に、Web ブラウザーでビュー ページのソースを開きました。しかし、ページソースにそのデータが表示されませんでした。そのデータをページソースに表示する方法はありますか? これは私のコードです
for (var i in Newdata) {
$('.dataTables_empty').hide();
var str = "<tr id='row" + Newdata[i].VehicleTypeID + "'>" +
"<td><p id='" + Newdata[i].VehicleTypeID + "'>" + Newdata[i].VehicleTypeName + "</p></td>" +
"<td><a href='#' class='datatable' id='edit' valuefield='" + Newdata[i].VehicleTypeID + "' action='edit' fieldname='VehicleTypeName' modal-name='Type-Modal'><button class='icon-edit'>Edit</button></a></td>" +
"<td><a href='#' class='datatable' id='delete' valuefield='" + Newdata[i].VehicleTypeID + "' action='delete'><button class='icon-delete'>Delete</button></a></td>" +
"</tr>";
var $row = $(str).appendTo("#BrandTypeTable tbody");
}