[請益] javascript被<? ?>包住時怎麼改?
如題,php code裡包含javascript的語法時,javascript的部份要怎麼改?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.41.244.173
噓
03/10 21:10, , 1F
03/10 21:10, 1F
→
03/10 21:12, , 2F
03/10 21:12, 2F
→
03/10 21:14, , 3F
03/10 21:14, 3F
噓
03/10 21:16, , 4F
03/10 21:16, 4F
→
03/10 21:25, , 5F
03/10 21:25, 5F
噓
03/10 21:27, , 6F
03/10 21:27, 6F
→
03/10 22:00, , 7F
03/10 22:00, 7F
→
03/10 22:16, , 8F
03/10 22:16, 8F
→
03/10 22:38, , 9F
03/10 22:38, 9F
噓
03/11 09:35, , 10F
03/11 09:35, 10F
<?
<script language=\"javascript\">
alert("你好。");
window.location.href = "hi.php";
</script>
?>
如上
我的意思是,像html放在php裡要加echo,那javascript要如何改?
※ 編輯: LAOS 來自: 114.41.249.48 (03/11 10:51)
→
03/11 10:56, , 11F
03/11 10:56, 11F
→
03/11 11:23, , 12F
03/11 11:23, 12F
→
03/11 12:14, , 13F
03/11 12:14, 13F
噓
03/11 20:02, , 14F
03/11 20:02, 14F
噓
03/11 21:10, , 15F
03/11 21:10, 15F
→
03/12 00:31, , 16F
03/12 00:31, 16F
→
03/12 11:18, , 17F
03/12 11:18, 17F
→
03/12 11:19, , 18F
03/12 11:19, 18F
推
03/17 12:50, , 19F
03/17 12:50, 19F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 4 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章