后台调用前台的含有多个参数的JS方法

xiaoxiao2021-02-28  110

后台(前台有ScriptManager控件) 

ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.GetType(), "xxtx", "xun('"+ tb_lsjl.table +"','"+bh5+"','"+rwdh+ "');", true);

前台JS方法 function xun(table,bh5,rwdh) {             var table = arguments[0];             var bh5 = arguments[1];             var rwdh = arguments[2];             layer.open({                 type: 2,                 title: ['详细信息', 'background:url(images/title_backgroud.png) repeat-x;color:white; height:35px; '],                 shadeClose: false,                 shade: 0.5,                 area: ['748px', '442px'],                 content: ['dchdXxxx.aspx?table='+table+'&bh5='+bh5+'&rwdh='+rwdh, 'no'], //iframe的url                 end: function () {                 }             });         }
转载请注明原文地址: https://www.6miu.com/read-31885.html

最新回复(0)