我试图进行ajax处理。但是我遇到了以下错误。
"NetworkError: 404 Not Found - http://localhost/tabiib-laravel/public/%7B%7BRatings%7D%7D?p1=Upq8EnGhEFZ9nmbl&p2=InK5NL4lHORPrgVc&p3=2kv9jxunD9LfYUHx&p4=coBkqTiAx7BRUIHP&rating=2&comment=dfg"
我的Ajax代码是:
$('#rating').on('click', function () {
var comment = $('#comment').val();
var p1 =$('#p1 span').text();
var p2 =$('#p2 span').text();
var p3 =$('#p3 span').text();
var p4 =$('#p4 span').text();
$.get("{{url('/Ratings')}}", {p1:p1,p2:p2,p3:p3, p4:p4,rating: rating,comment: comment},
function(data) {
alert(data);
$("#results").html("Rating Submited Successfully")
});
});