local param = CParamString();
-- 增加一个值
param:add('test1');
param:add('test2');
param:add(1);
param:add(2);

-- 获取长度
-- 结果:2
print(param:size());

-- 获取指定索引的值(起始位置为0)
-- 结果:test2            
print(param:getPos(0));

-- 设置toString的分隔符,后转化成字符串
-- 1,2
param:setSep(',');
print(param:toString());

-- 直接使用二个字符串加载(类名:方法名())
print(CParamString:get2('1',2));
Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""