Javascript中有没有办法让浏览器识别用户的分辨率并将他重定向到我的特定页面?类似的东西:
var wid=screen.width;
var hei=screen.height;
if ((wid = 1024) && (hei = 768)) {
window.redirect('page1024x768.html',"blank")
}
else {
((wid = 800) && (hei == 600)) {
window.open(page800x600.html',"_blank")
}
else {
window.open('page1366x768',"_blank")
我试过了,还是不行,是不是代码错了?