Razor 2(隨MVC4一起發佈)似乎不完全兼容Razor 1(來自MVC3)。從MVC3升級到MVC4後出現「元素未關閉」錯誤
升級以來,我發現了一個錯誤:
The "[email protected](count" element was not closed. All elements must be either self-closing or have a matching end tag.
產生故障碼,這是:
<[email protected](count == null ? null : " class='has-item'")>
如何解決這個?