How to process json response from ajax call

前端 未结 1 1940

My webservice returns a JSON object like following

[\"abc\",\"xyz\",\"option_3\"]

i.e. when I put this address in chrome browser http://l

1条回答
  •  时光取名叫无心
    2021-01-25 07:22

    Update

    You edited the question; you can't use dataType: 'json' because of cross-domain issues that can only be overcome by either using a proxy on the same domain or via CORS.

    When you use dataType: 'jsonp' you can't use async: false; this is because it doesn't really use XMLHttpRequest but uses the

提交回复
热议问题