TopJUI | easyui HTML Dialog页面间GET方式数据传递

较容易的方式通过URL内带参数进行数据传递

  var url = "apddList.html?c0=" + row.uuid + "&c1=" + row.c0; //URL赋值
  var $editDialog = $('<form></form>');
  $editDialog.iDialog({
        id:'ieManagerDg',
        title: '【000】',
        width: dlgWidth,
        height: dlgHeight,
        iconCls: 'fa fa-file-text-o',
        href: url,
        buttons: [{
            text: '关闭',
            iconCls: 'fa fa-close',
            btnCls: 'topjui-btn-red',
            handler: function () {
                $editDialog.iDialog('close');
            }
        }]
    });

打开页面apddList.html中获取参数

通过解析当前Dialog的herf即可

var params = $('#ieManagerDg').iDialog('options').href.split('?')[1].split('&');
c0 = params[0].split('=')[1];
c1 = params[1].split('=')[1];

猜你喜欢

转载自www.cnblogs.com/lxz-jlu/p/10728995.html
今日推荐