跳到主要内容

获取设备类型(device.type)

函数​

类型 = device.type()

返回值​

  • 类型 文本型

    设备的类型

说明​

用于判断设备的类型

示例​

print(string.format("当前设备类型是:%s" ,device.type()))