use ajax for laravel 4.x , code
$('#button').click(function(e){
$.ajax({
method:'post',
url:'test',
data:datas,//exists
success:function(data){
},
});
});
but i found it send http request with get,
Try this -
$('#button').click(function(e){
$.ajax({
type:'post',
url:'test',
data:datas,//exists
success:function(data){
},
});
});
(Note that method is replaced by type)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.