查詢字串繫結
要擴充套件路由繫結,請說你有一個像 https://stackoverflow.com/questions/1558902?sort=desc
這樣的網址
和 {controller=Home}/{action=Index}/{id?}
這樣的路由
public ActionResult Index(int? id, string sort){
//sort would bind to the value in the query string, i.e. "desc"
}