T
tungh
Unregistered / Unconfirmed
GUEST, unregistred user!
var dropItem_num=4;var dropItem_data=[["inv_drink_waterskin_12","1吉尔尼斯净水",75,1,30457,"消耗品",1.6],["inv_misc_food_05","1激流堡干酪",65,1,30458,"消耗品",4.18],["inv_fabric_netherweave","1灵纹布",60,1,21877,"",24.58],["inv_potion_131","1超级治疗药水",65,1,22829,"消耗品",1.38]];Table.create("dropItem");以上是一个WEB页面的源代码里的内容,我该如何对[["inv_drink_waterskin_12","1吉尔尼斯净水",75,1,30457,"消耗品",1.6],["inv_misc_food_05","1激流堡干酪",65,1,30458,"消耗品",4.18],["inv_fabric_netherweave","1灵纹布",60,1,21877,"",24.58],["inv_potion_131","1超级治疗药水",65,1,22829,"消耗品",1.38]]这一段里的数据进行每一个逗号里的详细读取?每一个[]里的逗号分开的各个数据还有那个[]与[]之间用逗号分开的算一条也就是说["inv_drink_waterskin_12","1吉尔尼斯净水",75,1,30457,"消耗品",1.6],["inv_misc_food_05","1激流堡干酪",65,1,30458,"消耗品",4.18],["inv_fabric_netherweave","1灵纹布",60,1,21877,"",24.58],["inv_potion_131","1超级治疗药水",65,1,22829,"消耗品",1.38]这些每条都单独读取 遍历过来 在最外面那个[]里的都遍历读取。这些每一条里的每一个逗号前的数据又要详细读取出来,要能够区分哪个是哪个,而且能操作。能写出代码供学习的话更好