Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在资源文件 (.resx) 中有一个变量,该值包含单词you'd.
you'd
当我尝试直接在警报框中使用此变量时,它显示you'd为you'd.
you'd
可能是什么问题?我该如何解决?
尝试这个:
alert('@System.Web.HttpUtility.JavaScriptStringEncode("你好,你想要这个。")');