[object Object] (404 not found) when attempting to submit via AJAX

后端 未结 5 1331
孤独总比滥情好
孤独总比滥情好 2021-01-04 01:12

I am trying to pass variables via ajax to a PHP script that will run a MySQL query. However, I keep getting the error 404 Not Found with: \"http://myurl/database/%5Bobject%

5条回答
  •  渐次进展
    2021-01-04 01:41

    It seems to be a jquery bug. jQuery.post is a shorthand of jQuery.ajax({method:"post"});, so I changed my code to this, and it worked for me. Hope they will correct this issue.

    Note, the issue still exists in 1.10.2 and 2.0.2 versions.

提交回复
热议问题