運行以下代碼時出現控制臺錯誤:<?php$str = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.";$str = wordwrap($str,30,'\n');?>document.write('test' + '\n');document.write( '<?php echo $str;?>' + '\n' );</script>控制臺錯誤:Uncaught SyntaxError: missing ) after argument list。哪里有問題?
PHP wordwrap 數組到 Javascript 返回錯誤
慕容708150
2023-04-14 15:15:42