添加新页面并取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(),
        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(){}*/
    });
    
    
}
原文地址:https://www.cnblogs.com/xueblvip/p/12657743.html