ワイズリマインダー

Vueの単一コンポーネント内でテキストとして<script>タグを記述するとエラーが発生した

<script scoped>
export default{
  setup (props) {
    console.log("<script></script>");
  }
}
</script>

 

閉じタグの部分で文字列を分割すればうまくいった。

console.log("<script><" + "/script>");

なぜだろう??

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


Warning: Trying to access array offset on false in /home/ysrock-240701/public_html/ysrock.com/reminder/public_html/wp-content/plugins/siteguard/really-simple-captcha/siteguard-really-simple-captcha.php on line 353

Warning: Trying to access array offset on false in /home/ysrock-240701/public_html/ysrock.com/reminder/public_html/wp-content/plugins/siteguard/really-simple-captcha/siteguard-really-simple-captcha.php on line 353

Warning: Trying to access array offset on false in /home/ysrock-240701/public_html/ysrock.com/reminder/public_html/wp-content/plugins/siteguard/really-simple-captcha/siteguard-really-simple-captcha.php on line 353

Warning: Trying to access array offset on false in /home/ysrock-240701/public_html/ysrock.com/reminder/public_html/wp-content/plugins/siteguard/really-simple-captcha/siteguard-really-simple-captcha.php on line 353

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

検索

最近のコメント

最近の投稿

タグ

フィード配信

アーカイブ

外部リンク