正在出现..但是在另一个单击弹出窗口中没有出现并显示错误消息 未捕获的TypeError:undefined不是函数 谁能帮助我?
<script>
$(document).ready(function () {
$('.screen1').each(function () {
var $link = $(this);
var $dialog = $('<div></div>')
.load($link.attr('href'))
.dialog({
autoOpen: false,
title: $link.attr('title'),
width: 1065,
height: 560
});
$('#ow1').click(function () {
alert("row");
$('<div></div>')
.load('gallery.html')
.dialog({
autoOpen: false,
title: 'Gallery',
width: 1065,
height: 560
}).dialog('open');
return false;
});
$('#ow2').click(function () {
alert("row2");
$('<div></div>')
.load('gallery.html')
.dialog({
autoOpen: false,
title: 'Gallery',
width: 1065,
height: 560
}).dialog('open');
return false;
});
});