1.如何把字符串数组 转成数组对象?
eval妙用
var str = "[\"UserName=1,Pwd=1\",\"UserNmae=1,Pwd=1,Sax=0\"]"; var arr = eval(str); alert(arr[0]);
1.如何把字符串数组 转成数组对象?
eval妙用
var str = "[\"UserName=1,Pwd=1\",\"UserNmae=1,Pwd=1,Sax=0\"]"; var arr = eval(str); alert(arr[0]);