gpt4 book ai didi

javascript - 如何在 WinRT 应用程序(Javascript、C#)中区分 Windows Phone 8.1 和 Windows 8.1?

转载 作者:行者123 更新时间:2023-12-03 11:31:41 24 4
gpt4 key购买 nike

如何使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com