Issue with JSON.stringify adding a extra \ and “” to my Json object

后端 未结 3 1766
清歌不尽
清歌不尽 2020-12-03 02:43

Hi I am creating using Javascript an array of object with a key and a value using the following code.

ValuesArray.push({ key: $(this).attr(\'someattribute\')         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 03:03

    May be you have an old prototype library. As I remove it, bug has disappeared

提交回复
热议问题