window.navigator.standalone 可用于判断当前web app是否从主屏启动。注意,这只在ios设备有效。 转载于:https://www.cnblogs.com/cly84920/archive/2012/03/26/4426537.html