String os = System.getProperty( "os.name" );
// if (os != null ) {
// if (os.startsWith( "Linux" )){
// session.setAttribute("Platform", "1");
// }
// else{
// session.setAttribute("Platform", "0");
// }
// }
判断平台
原创
©著作权归作者所有:来自51CTO博客作者mb5fb94c9d4a0ba的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
判断mac平台
代码片段收集:
isMac 代码片段 -
js判断平台访问,手机访问
直接用js判断if(/AppleWebKit.*Mobile/i.test(na
ipad android iphone .net javascript