用js判断是pc端还是移动端
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone",
"SymbianOS", "Windows Phone",
"iPad", "iPod"];
var flag = true;
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = false;
alert("移动端登录")
break;
}
}
if (flag==true){alert("电脑端登录")}
然后再隐藏某列