0
点赞
收藏
分享

微信扫一扫

LeetCode - 160. 相交链表(C语言,配图)

玉字璧 2023-11-18 阅读 46

引入外部JS:

<script setup>
    useHead({
      script: [ 
        {
         	type: "text/javascript",
            src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js'
        }
      ]
    })
</script>

如果需要将js放置body区域末尾,直接添加参数

<script setup>
    useHead({
      script: [ 
        {
         	type: "text/javascript",
            src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js',
            body:true
        }
      ]
    })
</script>

引入外部CSS:

<script setup>
    useHead({
      link: [
        {
          rel: 'preconnect',
          type: "text/css",
          href: 'https://fonts.googleapis.com'
        },
        {
          rel: 'stylesheet',
          type: "text/css",
          href: 'https://fonts.googleapis.com/css2?family=Roboto&display=swap',
          crossorigin: ''
        },
	    {
	      rel: "stylesheet",
	      type: "text/css",
	      href: "https://unpkg.com/swiper@8/swiper-bundle.css",
	    },
      ]
    })
</script>

扩展:

useHead({
  script: [
    {
      src: "/js/jquery.js",
    },
    {
      src: "/js/slide.js",
    },
  ],
});
举报

相关推荐

0 条评论