javascript "\" 在字符串里的是转义的意思

时间:2023-12-21 12:35:56

"\n" 在字符串里是换行的意思

alert("dfdsad\ndfsdf");   //有换行

alert("abc\de");   //abcde

相关文章