1. 程式人生 > >jQuery傳送get請求並將response資訊顯示到頁面上

jQuery傳送get請求並將response資訊顯示到頁面上

$.get(“http://127.0.0.1:29000/viewFile“,{selectPath:path},function(response){
$(“#testdiv”).html(response);
});

{}裡面的為向後臺傳遞的引數。