Calling a php function using ajax/javascript

前端 未结 6 1282
庸人自扰
庸人自扰 2021-01-21 16:21

Ok guys I know this question has been asked before but I am very new to PHP and JavaScript and hadn\'t even heard of ajax until i started looking for an answer to this question

6条回答
  •  时光说笑
    2021-01-21 17:08

    $.get("test.php", { name: "John", time: "2pm" }, function(data) {
       alert("Data Loaded: " + data);
     });
    

    http://api.jquery.com/jQuery.get/

提交回复
热议问题