嘿每个人都可以告诉我如何在 jquery-json/ajax 我的代码中包含 php 函数
php: get_bus_sched($origin, $destination)
###########jquery##########################
var origz = "<?php echo $_POST['org_id']; ?>"
var odesz = "<?php echo $_POST['des_id']; ?>"
var theme = "";
var source =
{
datatype: "json",
datafields: [
{ name: 'sched_id' },
{ name: 'dtime' },
{ name: 'aday'},
{ name: 'atime'},
{ name: 'ttime'},
{ name: 'tdist'},
],
id: 'id',
url: 'bus_sched.php'
};
如何调用 php 函数 ---> get_bus_sched($origin, $destination)