Passing list of values to django view via jQuery ajax call

前端 未结 5 713
一个人的身影
一个人的身影 2020-12-01 09:38

I\'m trying to pass a list of numeric values (ids) from one web page to another with jQuery ajax call. I can\'t figure out how to pass and read all the values in the list. I

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 10:20

    It seems you are setting the array to string here

    data: {'terid': values},
    

    It should be

    data: {terid: values}
    

提交回复
热议问题