|
发表于 2012-6-20 13:56:19
|
显示全部楼层
广东省广州市
本帖最后由 lrf6868 于 2012-6-20 13:58 编辑
模块版本: 3.12
所用系统: XP
命令名称: 文本_取中间_批量
BUG描述: 取出中间文本有问题 如果后标志文本为} 就不最近取出
我的源码如下:
测试数据:
{"result":{"message":"操作成功!","status":"success"},"data":{"pageInfo":{"size":0,"totalRecords":3,"records":[{"chanelInfo":{"name":"YY月票","language":0,"type":0,"freezed":false,"voiceQualityType":"None","onlineUserNumbers":0,"freeTime":null,"limit":0,"memberCount":0,"channelName":"YY月票","passwd":null,"country":0,"createTime":null,"logoUrl":null,"jifen":0,"isp":3,"pub":0,"typeStr":null,"ownerid":0,"ownerIp":null,"asid":40242933,"sid":40242933},"channelUserRole":"OWNER","channelJifen":0},{"chanelInfo":{"name":"YY月票","language":0,"type":0,"freezed":false,"voiceQualityType":"None","onlineUserNumbers":0,"freeTime":null,"limit":0,"memberCount":0,"channelName":"YY月票","passwd":null,"country":0,"createTime":null,"logoUrl":null,"jifen":0,"isp":3,"pub":0,"typeStr":null,"ownerid":0,"ownerIp":null,"asid":32657708,"sid":32657708},"channelUserRole":"OWNER","channelJifen":0}
数量 = 文本_取中间_批量 (测试数据, “sid” + #引号 + “:”, “}”, 局_频道数组, 真, , , , 假, 假)
取出的数组内容为:
40242933,"sid":40242933},"channelUserRole":"OWNER","channelJifen":0},,32657708,"sid":32657708},"channelUserRole":"OWNER","channelJifen":0},
我的建议:应该是遇到第一个}就应该立即取出中间文本的!
你的QQ: 157681655 |
评分
-
查看全部评分
|