我想在我的應用程序中使用jquery對話框,但它不會工作,它說類型錯誤:$(...)。對話框不是從Mozilla控制檯的功能,這是我的代碼jquery對話框不是函數
<link rel="stylesheet" href="css/jquery-ui.css">
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<div id="dialog-message" title="Important information">
<div style="margin-left: 23px;">
<p>
We're closed during the winter holiday from 21st of December, 2010 until 10th of January 2011.
</p></div>
</div>
<script >
$(function() {
$("#dialog-message").dialog({
modal: true,
draggable: false,
resizable: false,
position: ['center', 'center'],
width: 500,
height: 250,
dialogClass: 'ui-dialog-osx',
buttons: {
"I've read and understand this": function() {
$(this).dialog("close");
}
}
});
});
</script>
我的工作,它使用其他JavaScript庫,並避免衝突的應用程序,我把我的對話框腳本後,使用jQuery的文件,但仍是同樣的問題。可能是什麼問題?
1)*搜索*的錯誤信息2)*正確加載插件(它可能無法加載所述腳本資源;檢查網絡活動) – user2864740 2014-08-31 09:06:35
http://stackoverflow.com/questions/3791781/jquery -ui-dialog-is-not-a-function-error,http://stackoverflow.com/questions/24402531/whats-wrong-with-this-code-dialog-is-not-a-function,http:/ /stackoverflow.com/questions/6710041/elrte-dialog-is-not-a-function-error – user2864740 2014-08-31 09:07:29