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.
我想将一些 UTF-8 字符串连接在一起,有什么想法吗?
例如:
输入:س + ل + ا + م 输出:سلام
输入:س + ل + ا + م
输出:سلام
在 Javascript 中,您可以执行var output = 'س + ل + ا + م'.split(' + ').join('');. 只需替换拆分功能中分隔字符的内容即可。
var output = 'س + ل + ا + م'.split(' + ').join('');