MVC中多个通过Ajax请求的结合.docxVIP

  • 5
  • 0
  • 约9.39千字
  • 约 11页
  • 2017-07-09 发布于河南
  • 举报
MVC中多个通过Ajax请求的结合

点击“图文”的按钮来跳出一个界面来显示自己组合的页面如下JS: $(#Contents).click(function () {if ($(#ContentType).val() == 2) { LBS.ShowModal(#modal, 200px); } }); $(#ContentType).change(function () {if ($(this).val() == 1) { $(#Contents).removeAttr(readonly); }else { $(#Contents).attr(readonly, readonly); LBS.ShowModal(#modal, 200px); } }); $(#Contents).click(function () {if ($(#ContentType).val() == 2) { LBS.ShowModal(#modal, 200px); } });显示下面的弹框:所有的Html代码【divclass=permissionLevels jqmWindowid=modalstyle=top: 10%;divclass=back_boxdivclass=back_tit04 h3 id=model-title图文消息/h3divclass=tit_ico a class=tit_ico00 jqmClose title=关闭 href=#/a/div/divdivclass=jqmWindow_box permissionLevels_box tabBoxdivid=contentclass=modal_contentdivclass=tabtit_left a id=Contentid href=#内容/a a id=Mallid href=#商城/a a id=Eventid href=#活动/a/divdivstyle=clear:both/divdivclass=sjtj_body div class=sjtjtab_tit图文消息/divdivstyle=clear:both/divdiv select id=ddlcategory class=input_Edit inputW30 style=width:80px;height:30px;/selectinput id=txtSearch class=input_Edit inputW30 style=width:60%;height:30px; /input type=button value=搜索 id=btnSearch class=gray_bg style=width:60px;height:30px; //divdivstyle=clear:both/divdivstyle=width:100%;height:500px; overflow-y:auto;border:1pxsolid#ccc; background:#fff;margin-top:10px; select id=ddlContent style=width: 100%; height: 100%; multiple=multiple/select/div/div/div/divdivclass=bnt_box04 button class=bnt_h22 gray_bg fr jqmClose qx_but id=btnCancel data-dismiss=modal aria-hidden=true取消 /buttondivclass= w10 fr/div button type=button class=bnt_h22 green_bg fr id=btnConfirm 确定 /button/div/div/div】Js:/*图文消息*/ tabIndex 的值分别表示:1-内容 2-商城 3-活动var tabIndex = 1; $(#Contentid).click(function () { tabIndex = 1; getData(tabIndex);

文档评论(0)

1亿VIP精品文档

相关文档