在html内的文本框中输入json格式的数据,如何将串数据转成json对象。
输入数据为如下{"num":"3","info":[{"id":"3","type":"window","sit":"01C"},{"id":"4","type":"ch...
输入数据为如下
{"num": "3","info": [ {"id": "3","type": "window","sit":"01C"},
{"id": "4","type": "child" ,"sit":"01D"},
{"id": "5","type": "aisle" ,"sit":"01E"},
{"id": "6","type": "aisle" ,"sit":"01F"}]
如何将这组数据输入到文本框后,在js内直接转成json对象求解。 展开
{"num": "3","info": [ {"id": "3","type": "window","sit":"01C"},
{"id": "4","type": "child" ,"sit":"01D"},
{"id": "5","type": "aisle" ,"sit":"01E"},
{"id": "6","type": "aisle" ,"sit":"01F"}]
如何将这组数据输入到文本框后,在js内直接转成json对象求解。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询