str.match(/(?<=\[).*?(?=\])/g)
正则匹配以[开头以]结尾包含[]
str.match(/\[.*?\]/g)
正则匹配 {} 以及大括号中间的内容str.match(/\{[^\{]+\}/g)