jQuery $.ajax() executed twice?

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

Here is a button:


and a bound event:

$(\"#addToCart\         


        
4条回答
  •  误落风尘
    2020-12-19 09:50

    This is happening because of this: http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryslash

    Nohing to do with your javascript, this is pure Apache wizardry.

    Of course, as pointed out in other answers, you should add a slash after "add" because "add" is obvisouly a folder, not a file.

提交回复
热议问题