有两种方式检测你的程序将要运行在哪个平台

 

  1. var PLATFORM = Ti.Platform.osname;
  2. var myVar = (Ti.Platform.osname === "android") ? 60 : 35 ;

相关文章: