下面是我的代码,它不能在 chrome 中运行,但在 IE 中运行良好。尝试了其他线程中给出的所有方法,但没有用。
因此附上完整的代码以获得任何进一步的建议。
var changeLink = $("<a />").text(res_ButtonEdit).click(function () {
showPopupForm(q, action);
return false;
});
var deleteLink = $("<a />").text(res_ButtonRemove).click(function () {
$(function () {
if (confirmDeleteActionDialog.css("visibility") == "hidden") {
confirmDeleteActionDialog.css("visibility", "visible");
}
confirmDeleteActionDialog.dialog({
resizable: false,
position: ["center", 150],
width: 300,
height: 160,
modal: true,
buttons: [
{
text: res_ButtonRemove,
click: function () {
$(this).dialog("close");
deleteAction(q, form, action);
}
},
{
text: res_PopupCancel,
click: function () {
$(this).dialog("close");
}
}
]
});
});
return false;
});
var logLink = $("<a />").text("Log").click(function () {
actionItemLogDialog.dialog("open");
displayActionItemLog(action);
});
questionContainerContent.append($("<td cid='11' />").append(changeLink).append("<BR />").append(deleteLink).append("<BR />").append(logLink));
if (!canEditItemRight) {
changeLink.attr("disabled", true);
}
if (!canDeleteItemRight) {
deleteLink.attr("disabled", true);
}
questionContainerContent = null;
});
请帮忙提供一些建议。