0
我想张贴到我的页面中的变量产生的事件,所以我可以做这样的事情:我目前使用Fullcalendar - 参数传递到JSON页面
$id = $_POST['id'];
$return_arr = array();
$fetch = mysql_query("SELECT * FROM events WHERE userid = " . £id);
:
eventSources: [
// your event source
{
url: 'json-events.php',
type: 'POST',
data: {
id: userid
},
error: function() {
alert('there was an error while fetching events!');
}
}
// any other sources...
]
但是,没有一件事发生了,但我没有收到错误。