Is it possible to load content of page without Refreshing the whole page

后端 未结 3 557
执笔经年
执笔经年 2021-01-25 12:08

Actually i want to refresh my content of a page without Refreshing the whole page through JavaScript or j Query ....... and i did my whole project into ( Php or javaScript) so i

3条回答
  •  星月不相逢
    2021-01-25 12:29

    You can use JQuery Ajax functions to accomplish your requirement. all there functions given below will work for loading the content without refreshing the page.

        $.post("/controller/function", params, function(data) {
            // set received data to html
        });
    
    $.ajax("/controller/function", params, function(data) {
            // set received data to html
        });
    
    $.get("/controller/function", params, function(data) {
            // set received data to html
        });
    

提交回复
热议问题