Calling PHP scripts from Javascript without leaving current page

前端 未结 7 1279
别跟我提以往
别跟我提以往 2021-01-18 14:57

I\'m having some trouble calling PHP scripts from Javascript without leaving the current HTML page (if it is at all possible). I understand it is possible using AJAX, althou

7条回答
  •  时光说笑
    2021-01-18 15:46

    AJAX is Asynchronous Javascript And XML, Its a Javascript technology that allows you to send a request to the server (as your browser does when you enter a URL) and have the response in a javascript string instead of rendering it in the page.

    The problem is different browsers do not implement AJAX the same way, So I suggest using jQuery for abstraction.

    do this with jQuery:

    
    

提交回复
热议问题