我使用JQuery UI 1.8.10和jQuery最新版本。JQuery UI 1.8.10無法讀取未定義的屬性'3'
我的代碼是:
<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'?
,使該錯誤是jquery-ui.js on line 186
好吧,現在我把它改成了文件:
</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>';
}
}
?>
但還是同樣的錯誤
你確定你不需要/前' 'CMS/ww.incs /登錄-codes.php'; – 2012-08-14 08:04:48
什麼行/文件給你這個錯誤? – Jeemusu 2012-08-14 08:06:35
不,我不需要cms之前,因爲thas在de scriptbase。 – 2012-08-14 08:13:54