UA判断,写js里面,页面加载时执行
if( /Android|webOS| iPhone | iPad | iPod |BlackBerry|opera mini|opera mobile|appleWebkit.*mobile|mobile/i.test(navigator.userAgent) ) { window.location = 'wap.html'; }
Powered by: 博客园 Copyright © 2024 shenyixin Powered by .NET 8.0 on Kubernetes