我对 QueryStrings 和 ActionResult 有点疑惑
我有一个来自 jQuery 的 URL:
url: "/ToBePaid/Receipt/" + $(this).attr('value') + "&receipt=" + $(this).attr('checked')
这会产生
/待付/收据/28cb8260-d179-450f-b9c4-162f1cc45bbd&receipt=true
我的 ActionResult 如下:
公共 ActionResult ReceiptExpenseForGrouping(字符串 id,字符串收据)
我得到的是
id = "28cb8260-d179-450f-b9c4-162f1cc45bbd&receipt=true" 收据 = "true" = null
但我想要的是
id = "28cb8260-d179-450f-b9c4-162f1cc45bbd" 收据 = "true"
请帮我在这里有人吗?