JQuery的弹出("开放")。不工作 [英] JQuery popup.("open") not working

查看:127
本文介绍了JQuery的弹出("开放")。不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想只要我的网页得到负载。就绪的帮助下打开一个弹出窗口()函数
以下是其中的code。
但低于该功能没有给予任何回应。
任何其他方式打开的网页加载?

I'm trying to open a popup window as soon as my page gets load with the help of .ready() function and below is the code within it. But the function below is not giving any response. Any other way to open jquery popups on page load??

if( access_token==""&&access_token==null)
                 {
$( "#popupDialog1" ).popup( "open" )
}

以上code被整合为一个Android应用程序使用PhoneGap的,HTML5被devloped,javascript等等

The above code is integrated for an android app to be devloped using phonegap,html5,javascript etc

推荐答案

我认为你应该使用 || 而不是&放大器;&安培; 怎么一回事,因为一个变量不能 中同时

I think you should use || instead of && beacuse a variable can't be empty and null in the same time

if( access_token=="" || access_token==null){
    $( "#popupDialog1" ).click();             //try with click()
}

这篇关于JQuery的弹出("开放")。不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆