2017-08-14 54 views

回答

0

嘗試此代碼(asp.net芯)

public static String Path(this IHtmlHelper htmlHelper) 
     => ((Microsoft.AspNetCore.Mvc.Razor.RazorView)htmlHelper.ViewContext.View).Path;