Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
            
                    
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        3年前关闭。
                    
                
        

我正在尝试在查询字符串即_type=1中传递参数,但未传递。它没有出现在URL中,其他值却没有出现。为什么呢

 SitePaymentReportByBranch = function () {
          $('#btnprintSitePaymentByBranch').on('click', function (e) {
              e.preventDefault();
              if ($("#form1").validationEngine('validate')) {
                  var _employerID = "";
                  if ($('#cmbEmployerSitPaymentByParameter :selected').text() == "-Select-") {
                      alert('Plz Select Employer');
                  }
                  var url = '/Reports/frmSitePayment.aspx?_EmployerID=' + $('#cmbEmployerSitPaymentByParameter :selected').val() + '&_Formdate=' + $("#formdate").val() + '&_Todate=' + $("#todate").val() +'_type=1';
                  commonStartup.openReportWindow(url);

              }
          });

      },

最佳答案

查询参数必须用&分隔。您已为_type参数省略了此命令:

'_type=1'


应该;

'&_type=1'

07-24 19:15
查看更多