Unable to receive JSON from JQuery ajax call

后端 未结 3 1060
不知归路
不知归路 2021-02-20 05:01

I have determined that my JSON, coming from the server, is valid (making the ajax call manually), but I would really like to use JQuery. I have also determined that the \"post\"

3条回答
  •  别跟我提以往
    2021-02-20 05:19

    The data parameter is wrong. Here is an example that works:

    data: { index: ddl.selectedIndex },

    This contructs an object with property called index with value ddl.selectedIndex.

    You need to remove the quotes from your data parameter line

    Good luck A

提交回复
热议问题