關于換行的兩種寫法
document.write("Hello"+"<br />"+" world");
document.write("Hello"+'<br />'+" world");
兩種寫法的結果一樣 ? 單引號和雙引號有什么區別么?
document.write("Hello"+"<br />"+" world");
document.write("Hello"+'<br />'+" world");
兩種寫法的結果一樣 ? 單引號和雙引號有什么區別么?
2016-05-03
舉報
2016-05-03
雙引號是直接顯示出來
2016-05-03
單引號是表示為字符,雙引號表示為字符串。
2016-05-03
和c語言的道理應該一樣,單引號表示字符,雙引號表示字符串。實際結果是一樣的