Javascript var isMobile=jQuery.browser.mobile;还需要别的吗
我有些东西太好用了。var isMobile在作为include部署时停止了函数的其余部分的工作,但是在它自己的页面上工作得很好 我希望阻止执行的jQuery插件称为Meerkat,它显示并隐藏了一个浏览器底部的拥抱div。只要Meerkat没有出现在手机或平板电脑上,一切都是正常的。非常糟糕的用户体验。我以为我在detectmobilebrowser.js上赢了Javascript var isMobile=jQuery.browser.mobile;还需要别的吗,javascript,jquery-plugins,Javascript,Jquery Plugins,我有些东西太好用了。var isMobile在作为include部署时停止了函数的其余部分的工作,但是在它自己的页面上工作得很好 我希望阻止执行的jQuery插件称为Meerkat,它显示并隐藏了一个浏览器底部的拥抱div。只要Meerkat没有出现在手机或平板电脑上,一切都是正常的。非常糟糕的用户体验。我以为我在detectmobilebrowser.js上赢了 $(document).ready(function(){ var isMobile = jQuery.browser.mobi
$(document).ready(function(){
var isMobile = jQuery.browser.mobile;
if(isMobile)
{
window.location.href = 'http://*******/nomeerkat.html';
}
});
这是一个独立的功能,猫鼬功能在非移动/平板电脑平台上工作。当预订为包含桌面平台时,平台不执行猫鼬功能。谷歌没有发现任何与检测手机相关的if-else的例子(
顺便说一句:你不应该在重定向之前等待DOMready,但它正在使用detectmobilebrowser.jsI这篇博文,这一事实又如何呢
$(function(){
$('.meerkat').meerkat({
background:'url(\'http://****.jpg\') repeat-x left top',
height: '90px',
width: '940px',
position: 'bottom',
close: '.close-meerkat',
dontShowAgain: '.dont-show',
animationIn: 'fade',
animationSpeed: 1000,
removeCookie: '.reset'
}).addClass('pos-bot');
$('#bottom').click(function(){
$('.meerkat').destroyMeerkat();
$('.meerkat').meerkat({
height: '90px',
width: '940px',
position: 'bottom',
close: '.close-meerkat',
dontShowAgain: '.dont-show',
animationIn: 'slide',
animationSpeed: 1000,
removeCookie: '.reset'
}).removeClass('pos-bot');
$('.code').hide();
$('.bottom_').show();
return false;
});
});