$(document).ready(function() {
$(".modalbox").fancybox({
type: 'ajax',
ajax : {
type : "GET",
URL: 'requestajax.php',
data : {cid:'3'},
error: function(){
alert('failure');
}
}
});
所以这是我的代码,当我使用 firebug 时,我看到数据正在传递(在参数下),但请求的 url 是同一个文件 index.php 而它应该说 requestajax.php?cid=3 任何想法?我想我做错了什么。模态框加载了 index.php 内容而不是 requestajax.php。那是问题