除了楼上的JSON.parse、eval,还可以Functionlet str = "[['1'],['2','3']]" let res = new Function('return ' + str)()
JSON.parse("[['1'],['2','3']]".replaceAll('\'', '\"'))