-3
이 문제에 대한 해결책이 있습니까? 문자열을 htmlhelper로 입력하십시오. C#
이
이 원인, 멋지게 쓰기public static string ResourceScriptString(this HtmlHelper html, string type, string key)
{
return HttpUtility.JavaScriptStringEncode(ResourceDBManager.CachedObject.getValue(type, key), true);
}
내가 원하는 마십시오
$("#spanfile").html(@Html.ResourceScriptString("error","please.choose.file"));
를 작동하지 않는 것은 작업 만 VS에서 자바 스크립트 구문 분석 오류와
$("#spanfile").html("@Html.ResourceScriptString("error","please.choose.file")");
한다
public static string ResourceScriptString(this HtmlHelper html, string type, string key)
{
return HttpUtility.JavaScriptStringEncode(ResourceDBManager.CachedObject.getValue(type, key), false);
}