jQuery $.ajax() executed twice?

后端 未结 4 1883
一个人的身影
一个人的身影 2020-12-19 09:41

Here is a button:


and a bound event:

$(\"#addToCart\         


        
4条回答
  •  北海茫月
    2020-12-19 09:58

    Status Code:301 MOVED PERMANENTLY
    

    No, your JavaScript is not causing this. It looks like your server is redirecting /cartManager/add to /cartManager/add/. Since the server wants a trailing slash, why not just add it and avoid the redirect?

提交回复
热议问题