local string = "{1,2,3,4}"
local traString=string.match(string , "%d+,%d+,%d+,%d+")
--此时tranString = "1,2,3,4",去掉"{","}"
string = string.split(tranString , ",")
string = {1,2,3,4}
string[1]=1
string[2]=2
string[3]=3
string[4]=4
local string = "{1,2,3,4}"
local traString=string.match(string , "%d+,%d+,%d+,%d+")
--此时tranString = "1,2,3,4",去掉"{","}"
string = string.split(tranString , ",")
string = {1,2,3,4}
string[1]=1
string[2]=2
string[3]=3
string[4]=4