c# - 这里我有cshtml和js ajax ..我有两个站点..第一个站点打开了弹出模式...另一个站点没有打开弹出模式
问题描述
在这里我有cshtml和js ajax ..我有两个站点..第一个站点打开了弹出模式...另一个站点没有打开弹出模式为什么?
<div class="modal fade bs-example-modal-lg" id="addNote" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-large">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title"> Notes for <span id="noteTitle">@Model.TitleName</span></h4>
</div>
</div>
</div>
<span class="float-right btn" id="btnnote" onclick="openAuthNotePopup();" style="padding:0px;"><img title="Add Note" width="25" height="25" alt="Add Note" src='@Url.Content("~/Content/images/sticky-note2.png")' /></span>
function openAuthNotePopup() {
var memberNotesUrl = '@(Url.Action("CreateNote", "Notes", new { area = AreaName.Notes}))' + "?modulePageID=" + '@((int)Enums.Page.NoteAuthorizations)' + "&id=" + '@(Model.AuthorizationID)' + "&memberOrProviderID=" + '@(Model.MemberID)' + "&titleName=" + '@(titleName)';
$("#divNotes").html("");
$.ajax({
type: 'GET',
url: memberNotesUrl,
success: function (data) {
$("#divNotes").html(data);
$('#addNote').modal()
$('#addNote').modal('show')
}
});
}
解决方案
推荐阅读
- jquery - 单击或更改选择输入时如何隐藏/切换 DIV
- python - 使用 BS4 查找特定选项
- solr - 实施 SOLR 后过滤器 - 我如何从客户后过滤器中读取配置
- outlook - microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException:访问被拒绝。检查凭据并重试
- r - str_detect find a word that starts with a character and end with a character
- linux - Use of watch to update image displayed in linux every N seconds fails
- key - google-map msg(仅用于开发目的)
- javascript - Chrome 操作系统通知架图标
- python - 尝试使用 Zappa 部署我的无服务器应用程序时出现不允许的主机错误
- java - 在 Android 上启动任何地图应用程序