必须在“\n”之前添加另一个“\”。 例: PHP : $text = "Example Text : \n" $text2 = "Example Text : \\n" JS: window.alert('<?php echo $text; ?> ...
確定! 回上一頁