Ajax to refresh a partial view using express and JQuery?

后端 未结 2 1873
忘了有多久
忘了有多久 2021-01-03 03:13

I would like to refresh a partial view using ajax. I kwow how to append the new data to the HTML, but I would like to know if there is a simpler way to do it.

I have

2条回答
  •  执念已碎
    2021-01-03 03:58

    Use it You may get good solution

    function ajaxRequest(url, succesCallBck, completeCallBck, errorCallBck)
    { $.ajax({url: url type: "POST", dataType: "json", complete: completeCallBck, success: succesCallBck, error: errorCallBck }); }

提交回复
热议问题