codecamp

JavaScript +=连接字符串操作

// 举例
var ourStr = "I come first. ";
ourStr += "I come second.";


// Only change code below this line


var myStr="This is the first sentence. ";
myStr+="This is the second sentence.";
 JavaScript字符串连接方式
JavaScript 使用变量连接字符串
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定