remove double quotes from Json return data using Jquery

前端 未结 8 2051
半阙折子戏
半阙折子戏 2020-12-08 06:29

I use JQuery to get Json data, but the data it display has double quotes. It there a function to remove it?

$(\'div#ListingData\').text(JSON.stringify(data.         


        
8条回答
  •  时光说笑
    2020-12-08 07:06

    You can simple try String(); to remove the quotes.

    Refer the first example here: https://www.w3schools.com/jsref/jsref_string.asp

    Thank me later.

    PS: TO MODs: don't mistaken me for digging the dead old question. I faced this issue today and I came across this post while searching for the answer and I'm just posting the answer.

提交回复
热议问题