作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何使用 Javascript 或 C# 在 WinRT 应用程序中区分 Windows Phone 8.1 和 Windows 8.1?我需要在运行时了解操作系统。有人可以帮忙吗?
最佳答案
如果在代码中,请尝试使用 pragma 预处理器。例如
#if WINDOWS_PHONE
windows phone code here
#else if WINDOWS
windows 8 code here
#endif
关于javascript - 如何在 WinRT 应用程序(Javascript、C#)中区分 Windows Phone 8.1 和 Windows 8.1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26706196/
我是一名优秀的程序员,十分优秀!