我试图在查询字符串中传递一个参数,即{。{}}但它没有通过。它不会出现在URL中,其他值也会出现在此URL中。为什么?
_type=1
答案 0 :(得分:2)
在&
修正_type
'&_type=1'
var url = '/Reports/frmSitePayment.aspx?_EmployerID=' + $('#cmbEmployerSitPaymentByParameter :selected').val() + '&_Formdate=' + $("#formdate").val() + '&_Todate=' + $("#todate").val() +'&_type=1';
答案 1 :(得分:1)
查询参数必须用&
分隔。您已为_type
参数省略了此内容:
'_type=1'
应该是;
'&_type=1'