// 1.长字符串 // 1.1 let longString1 = "This is a very long string which needs " + "to wrap across multiple lines because " + "otherwise my code is unreadable."; // 1.2 反斜杠 let longString2 = "This is a very long string which…
在javascript里怎么样才能把int型转换成string型 (1) var num = 0; a = x.toString(); (2) var x = 0; a = x + ""; //JS会自动隐性转换 javascript 将string 变成 int (1) var s = "32" var i = new Number(s) (2) parseInt("aaa") // return NaN. …