cc|cc插件
- 作者: wesjun07
- 热度: 119189
- 更新: 2024-02-27 22:41:26
# 引入插件
compile("cc:1.07")
1
# 使用说明
# IsInTable(value, tbl)
判断数据存在数组中
local data = "cc"
local arr = {"cc","dd"}
if IsInTable(data, arr) then
print("数据存在")
end
1
2
3
4
5
6
2
3
4
5
6
# findOnee(node, timeStr)
定时找控件(成功返回查找结果,超时返回 nil)
local node = R():desc("正在投射");
local view = findOnee(node, 3000)
if view then
print("找到节点啦")
end
1
2
3
4
5
2
3
4
5