题解 | #数据类型转换#
数据类型转换
http://www.nowcoder.com/practice/c1c8e834742c4d90b69caf19fc18a92d
{"css":"","js":"function _splice(left,right) {\n // 补全代码\n let s1 = String(left);\n let s2 = String(right);\n return s1.concat(s2)\n}","html":"","libs":[]}
利用String()方法把数据的类型转成字符串, 最后使用字符串的concat()方法将两个新字符串串联起来.