Execute php url with JS

后端 未结 3 706
别那么骄傲
别那么骄傲 2021-01-16 11:36

Is it possibe to simply load a php script with a url with js?

$(function() {

            $(\'form\').submit(function(e) {

                e.preventDefault(         


        
3条回答
  •  逝去的感伤
    2021-01-16 11:46

    like this ?

    $.get('myPHP.php', function(data) {
      $('.result').html(data);
      alert('Load was performed.');
    });
    

提交回复
热议问题