Variable data in ajax call JQUERY

后端 未结 7 1036
有刺的猬
有刺的猬 2020-12-31 14:58

I\'m trying to use variable in AJAX call in jquery but it is not working. move variable contains different values. Please check the following code:

var $move         


        
相关标签:
7条回答
  • 2020-12-31 15:46

    To post the value of $move variable, do this:

    $.ajax({
       type: "POST",
       url: "somephp.php",
       data: {move: $move}
    });
    
    0 讨论(0)
提交回复
热议问题