附加到字符串变量 [英] Append to string variable
本文介绍了附加到字符串变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将单词附加到已填充的带有空格的字符串变量中?
How can I append a word to an already populated string variable with spaces?
推荐答案
像这样:
var str = 'blah blah blah';
str += ' blah';
str += ' ' + 'and some more blah';
这篇关于附加到字符串变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文