字符串拼接

let string = 'hello';

let strings = string;

console.log(string + '---' + strings) //hello---hello

console.log('hello'+ 'hello') //hellohello

总结:要拼接的内容用引号即可

posted @ 2018-10-09 09:10  杏杏子  阅读(94)  评论(0编辑  收藏  举报