titanium开发教程0102检测平台

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

  1. var PLATFORM = Ti.Platform.osname;
  2. var myVar = (Ti.Platform.osname === "android") ? 60 : 35 ;
原文地址:https://www.cnblogs.com/xiaozhanga4/p/2400711.html