php – JQuery UI 1.8.10无法读取未定义的属性’3′
发布时间:2020-05-22 11:51:46 所属栏目:PHP 来源:互联网
导读:我使用 JQuery UI 1.8.10和jquery最新. 我的代码是: script src=http://code.jquery.com/jquery-latest.js/scriptscript src=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.js/script
我使用 JQuery UI 1.8.10和jquery最新. 我的代码是: <script src="http://code.jquery.com/jquery-latest.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.js"></script> <script type="text/javascript" src="/cms/ww.admin/login/login.js"></script> </head> <body> <div id="header"></div> <?php if(isset($_REQUEST['login_msg'])) { require SCRIPTBASE.'cms/ww.incs/login-codes.php'; $login_msg = $_REQUEST['login_msg']; if(isset($login_msg_codes[$login_msg])) { echo '<script>$(function(){$("<strong>'.htmlspecialchars($login_msg_codes[$login_msg]).'</strong>").dialog({modal:true});});</script>'; } ?> 为什么这样做不能读取未定义错误的属性“3”? 给出错误的文件是第186行的jquery-ui.js 好的,现在我改成: </head> <body> <div id="header"></div> <div id="login-msg"></div> <?php if(isset($_REQUEST['login_msg'])){ require SCRIPTBASE.'cms/ww.incs/login-codes.php'; $login_msg=$_REQUEST['login_msg']; if(isset($login_msg_codes[$login_msg])){ echo '<script>$(function(){ $("#login-msg").html("<strong>'.htmlspecialchars($login_msg_codes[$login_msg]).'</strong>").dialog({modal:true});});</script>'; } } ?> 但仍然是一样的错误 这是一个来自jQueryUI的错误,它使用:数据选择器(如果你在调用堆栈中看到的话),这是最新的jQuery已经被弃用/不兼容.尝试这个jQueryUI: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.22/jquery-ui.min.js 例如: http://jsfiddle.net/techunter/RyUVq/ (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |