AJAX request callback using jQuery

后端 未结 5 1012
梦谈多话
梦谈多话 2020-11-21 23:01

I am new to the use of jQuery for handling AJAX, and have written a basic script to get the basics down. Currently I am POSTing an AJAX request to the same file, and I wish

5条回答
  •  借酒劲吻你
    2020-11-21 23:29

    The elegant way would be to have a separate(!) PHP file that will only output the number times 2 part of your current PHP. Then you generate an AJAX request from your current PHP to the new separate PHP.

提交回复
热议问题