Syntax:
$(function(){
var callback = function(r){ //r represents the data returned by the background data.
}
$.get("",callback); //Write the path of the method in quotation marks
}) ;
In this way, the data obtained by the background method can be displayed on the html front-end.
The following is a js and background method written at work:
js:
$(function(){
var callback = function (r) {
var data = "
; r.length - i - 1].CustomerName "
";
}
$("#01_list").html(data2 (t_data2.length > 0 ? t_data2.substr(6, t_data2.length - 6) : "") "