jquery sending post data without defining url

后端 未结 1 500
不思量自难忘°
不思量自难忘° 2021-01-24 15:25

Is it possible to send data via ajax or post and not to define url? This is the code I am trying to work:

$(\"#gll_delete\").click(function(){
    var gll = $(\"         


        
相关标签:
1条回答
  • 2021-01-24 15:58

    You need to specify a destination for this request. If it should be the same page (like an empty action attribute on a html form reacts) you could do:

    url: location.href
    
    0 讨论(0)
提交回复
热议问题