设备类型 = device.type()
设备类型 文本型,返回设备类型,大约是 "iPhone3,1" 这种形式的字符串
"iPhone3,1"
获取设备类型
if device.type() == "iPhone3,1" then -- 是 iPhone 4 end