添加新页面并取name一样的返回值按逗号隔开

//导出新
function ExportXlsNew() {
    var addurl = 'ldcReportHistoryController.do?exportXlsNew2';
    var addurl1 = 'ldcReportHistoryController.do?exportXlsNew'
    //createwindow('导出',addurl,600,400);
     
    
    $.dialog({
        content: 'url:'+addurl,
        lock : true,
        zIndex: getzIndex(),
        width:600,
        height:400,
        title:'导出',
        opacity : 0.3,
        cache:false,
        ok: function(){
            iframe = this.iframe.contentWindow; 
            
            var rhTime_begin = iframe.$("input[name='rhTime_begin']").map(function(){
                return this.value;
            }).get().join(",");
            
            var rhTime_end = iframe.$("input[name='rhTime_end']").map(function(){
                return this.value;
            }).get().join(",");
            
            addurl1
            
            
             
             $( this ).dialog( "close" );
        },
        cancelVal: '关闭',
        cancel: true /*为true等价于function(){}*/
    });
    
    
}

 

posted @ 2020-04-08 08:33  薛柏梁  阅读(193)  评论(0编辑  收藏  举报