有两种方式检测你的程序将要运行在哪个平台 var PLATFORM = Ti.Platform.osname; var myVar = (Ti.Platform.osname === "android") ? 60 : 35 ; 相关文章: