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

来源:互联网 发布:java判断闰年的条件 编辑:程序博客网 时间:2024/06/08 21:34

后台(前台有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 () {


                }


            });
        }
原创粉丝点击