一直no,請問為什么<a href="#" class="a_post">提交</a><script> $(".a_post").on("click",function(event){ event.preventDefault(); $.ajax({ type: "POST", url: '/test1', contentType:"application/json", data: JSON.stringify({name:1}), dataType:"json", success: function(result){ alert('ok'); }, error: function(result){ alert('no'); } }); });</script>
laravel中使用ajax post數(shù)據(jù)失敗
郎朗坤
2019-02-19 21:16:34