当前位置:网站首页>[forward] how to view UserData in Lua
[forward] how to view UserData in Lua
2020-11-06 21:09:00 【Cockroach bully L】
local function printMetaTableFun(t)
local rs_tb={}
local function tmp(t)
if t then
for _val, _val_type in pairs(t) do
if type(_val_type)~="userdata" then
if not string.find(_val,"_") then
table.insert(rs_tb,_val)
end
end
end
local ft=getmetatable(t)
if ft then
tmp(ft)
end
end
end
tmp(getmetatable(t))
table.sort(rs_tb)
local rs_str=""
for i=1,#rs_tb do
rs_str=rs_str .. rs_tb[i] .. "\n"
end
print(rs_str)
end
printMetaTableFun(touch)
版权声明
本文为[Cockroach bully L]所创,转载请带上原文链接,感谢
边栏推荐
- The native API of the future trend of the front end: web components
- 意派Epub360丨你想要的H5模板都在这里,电子书、大转盘、红包雨、问卷调查……
- 2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
- With this artifact, quickly say goodbye to spam messages
- Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time
- An article takes you to understand CSS pagination examples
- Share with Lianyun: is IPFs / filecoin worth investing in?
- An article will take you to understand CSS alignment
- jenkins安装部署过程简记
- To Lianyun analysis: why is IPFs / filecoin mining so difficult?
猜你喜欢
2020-09-03:裸写算法:回形矩阵遍历。
谷歌浏览器实现视频播放加速功能
From overseas to China, rancher wants to do research on container cloud market
git远程库回退指定版本
Metersphere developer's Manual
Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
The legality of IPFs / filecoin: protecting personal privacy from disclosure
Use modelarts quickly, zero base white can also play AI!
With this artifact, quickly say goodbye to spam messages
How to prepare for the system design interview
随机推荐
StickEngine-架构11-消息队列(MessageQueue)
An article will take you to understand CSS alignment
事件监听问题
image operating system windows cannot be used on this platform
Behind the first lane level navigation in the industry
Flink's datasource Trilogy: direct API
Vue communication and cross component listening state Vue communication
File download manager realized by electron
Use modelarts quickly, zero base white can also play AI!
Staying up late summarizes the key points of report automation, data visualization and mining, which is different from what you think
C語言I部落格作業03
From overseas to China, rancher wants to do research on container cloud market
Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
递归、回溯算法常用数学基础公式
2020-09-04:函数调用约定了解么?
Open source a set of minimalist front and rear end separation project scaffold
C# 调用SendMessage刷新任务栏图标(强制结束时图标未消失)
【ElasticSearch搜索引擎】
Using an example to understand the underlying processing mechanism of JS function
ERD-ONLINE 免费在线数据库建模工具