如何顯示對屏幕(index.html文件)的API響應輸出?如何將POST API調用的輸出打印到index.html
$.ajax({
type : http_method,
url : url,
data: body,
contentType : type,
cache : false,
async : true,
complete : function(jqxhr, textStatus) {
// print output to index.html file
}
});
你有什麼嘗試?你研究了什麼? –