【发布时间】:2014-01-28 05:22:11
【问题描述】:
console.log(Ext.os.Name)
为所有浏览器打印操作系统名称(“Windows”==>在 windows 机器中),
但我想知道有没有办法获得当前的 Platform("chrome","safari","firefox","windows","ios","ios-classic")基于 sencha 当前加载的主题的值。
因为我还需要根据浏览器配置我的一些组件。
我不需要浏览器名称或操作系统名称,我需要使用的平台变量 通过 sencha 框架。就像我们使用 ios6 时一样 平台参数作为 ios-classic 我们也传递平台参数 在链接中,如http://cdn.sencha.com/touch/sencha-touch-2.3.1a/built-examples/kitchensink/index.html?platform=ios-classic# 或 http://cdn.sencha.com/touch/sencha-touch-2.3.1a/built-examples/kitchensink/index.html?platform=windows# 这将分别加载 ios6 和 windows 主题,即使我们在任何操作系统中使用任何类型的浏览器。
【问题讨论】:
标签: extjs sencha-touch sencha-touch-2