[請益] 兩種語言內嵌

看板PHP作者 (知足常樂)時間17年前 (2008/07/15 01:00), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
請問一下 <script type="text/ecmascript"> //<![CDATA[ //]]> </script> php可以內嵌在裡面嗎? 例如: var idstr0 = bind[i] + "line"; county1 = svgDocument.getElementById(idstr0); <? if($tagc==1){ print"var idstr1 = bind[i] + \"GATC\";"; print"gene = svgDocument.getElementById(idstr1);"; } ?> 可以以這樣的型式內嵌嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.121.219.142

07/15 01:17, , 1F
執行看看不就知道了嗎
07/15 01:17, 1F
文章代碼(AID): #18UuOqyG (PHP)
文章代碼(AID): #18UuOqyG (PHP)