访问Index function 两次

cshtml

<bgsound src = ''/>

Controller

public ActionResult Index (int id?)

{

  ...

}

如果访问这个页面的话,会连续访问两次,由于scr ='' 造成,把scr='' 去掉就可以了

cshtml

<bgsound/>

原文地址:https://www.cnblogs.com/lavenvsxiaoye/p/4606136.html