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.
我有javascript代码:
s = String.fromCharCode(s);
这有效,但它只适用于一个字符,即使 String.fromCharCode 方法应该适用于由逗号分隔的多个字符。任何想法为什么会这样?
如果您想要多个字符,则需要传递一系列值...
String.fromCharCode(65, 66, 67); // "ABC"