| 函数名称 |
类型.判断类型 |
|
|
|
| 函数功能 |
判断数据是什么类型 |
|
|
|
| 函数语法 |
类型.判断类型(ginseng) |
|
|
|
| 英文语法 |
LX.PDNX(ginseng) |
|
|
|
| 函数权限 |
root 激活模式 无障碍模式 |
|
|
|
| 参数说明 |
参数 |
类型 |
必填 |
说明 |
|
ginseng |
任何数据 |
是 |
传入任何数据进行判断 |
| 返回值 |
类型 |
string |
|
函数用例:
print(类型.判断类型("Hello world")) --> stringprint(类型.判断类型(10.4*3)) --> numberprint(类型.判断类型(print)) --> functionprint(类型.判断类型(type)) --> functionprint(类型.判断类型(true)) --> booleanprint(类型.判断类型(nil)) --> nilprint(类型.判断类型(type(X))) --> string
print(LX.PDNX("Hello world")) --> stringprint(LX.PDNX(10.4*3)) --> numberprint(LX.PDNX(print)) --> functionprint(LX.PDNX(type)) --> functionprint(LX.PDNX(true)) --> booleanprint(LX.PDNX(nil)) --> nilprint(LX.PDNX(type(X))) --> string