Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクトに Spring Roo を使用しています。Spring Roo はラウンドトリップに JSPX を使用しています。
JavaScript を JSPX ページに埋め込んで解析可能にするにはどうすればよいですか?
CDATA と JavaScript コメントを使用します。
<script type="text/javascript"> // <![CDATA[ alert(1); // ]]> </script>
<script>これにより、タグ内のコンテンツに問題がないことが XML パーサーに伝えられます。
<script>