the*_*ist 3 javascript ajax jquery
为什么我的方法不发布数据?根据jquery docs:"请求方法
如果数据作为对象提供,则使用POST方法; 否则,假设GET."
var car = {{ car }}
var motorcycle = {{ motorcycle }}
$('.send_data').on('click', function(e){
e.preventDefault();
$('#'+container).load(
$(this).attr('href'),
{ car: car, motorcycle: motorcycle },
function(data) {
$('#'+container).effect('highlight');
}
);
})
Run Code Online (Sandbox Code Playgroud)