首页 \ 问答 \ 正确使用“(Correct use of ")

正确使用“(Correct use of ")

我如何打印引号,如:

史蒂夫说“你好世界”,不是史蒂夫问世界吗?

var test = function(who,said) {
    alert(who + said);
}
test("Steve said ", "hello world"); 

我可以看到答案涉及“来自另一个答案”,但不知道如何在这里应用它。 任何帮助赞赏。


How would I print out quotation marks as in:

Steve said "hello world", not Steve said hello world?

var test = function(who,said) {
    alert(who + said);
}
test("Steve said ", "hello world"); 

I can see the answer involves '&quot' from another answer here but can't tell how to apply it here. Any help appreciated.


原文:https://stackoverflow.com/questions/15863875
更新时间:2022-01-18 18:01

最满意答案

您是否尝试过Google Closure库?

编辑 Google Closure库已经转移到github上。 https://github.com/google/closure-library


Have you tried the Google Closure library for that?

edit Google Closure library has moved to github. https://github.com/google/closure-library

相关问答

更多