我无法将数据发送到控制器。我的代码是:Codeigniter:如何使用ajax和csrf获取过程数据
var csrf = Cookies.get('truelogokoption');
$.ajax({
url : baseURL +"checkout/hasilFilter",
type : "GET",
data : {destination: x, berat: y, courier: z} + "&starssecure=" + csrf,
success: function (ajaxData){
//$('#tombol_export').show();
//$('#hasilReport').show();
$("#hasil").html(ajaxData);
}
});
“数据”有问题吗?感谢
此代码是在js文件或php文件? – ImBS