Javascript how to turn array detected as string to array

前端 未结 0 1293
日久生厌
日久生厌 2021-01-31 21:29

I have a list detected as a string like this one:

var list = "[\'one\', \'two\', \'three\']"

Is there a way to turn this into an array:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题