-
๊ธ์ด์ด๊ธ
-
2022๋ 4์ 26์ผ 18:06 #32596

์ค์ฌํฌ์ฐธ๊ฐ์๋ฐฐ์ด ์ง์์ ํ ๋๋ก cdn ๋ฐฉ์์ผ๋ก ์๋ธํ์ด์ง๋ฅผ ๊ตฌ์ฑํ๋ ค ํ๋๋ฐ์
์ง๊ธ๊น์ง ๋ฐฐ์ด ๋ฐ์ดํฐ ๋ฐ์ธ๋ฉ์ด ์ถ๋ ฅ๋์ง ์์ต๋๋ค. cdn ์ผ๋ก ์์ ํ์ฌ๋ ๋ค๋ฅธ ์์ ์ด ํ์ํ๊ฐ์?
2022๋ 4์ 26์ผ 22:18 #32624
codingappleํค ๋ง์คํฐcdn์ ๊ทธ๋ฅ ์ธ๋ถํ์ผ ๊ฐ์ ธ์ค๋ ๋ฒ์ผ ๋ฟ์ด๋ผ ๋ทฐ๋์ ์๊ด์๋๊ฐ๋ ๊ฐ์๋ฐ
๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค์ง ๋ชปํ๊ฑฐ๋ ๋ฐ์ดํฐ๋ฐ์ธ๋ฉ ๋ฌธ๋ฒ์ด ์ด์ํ๊ฒฝ์ฐ๊ฐ๊ตฐ์
2022๋ 4์ 27์ผ 12:19 #32674
์ค์ฌํฌ์ฐธ๊ฐ์์์ธ ์ฝ๋๋ฅผ ๋ณด์ฌ๋๋ฆฌ๊ฒ ์ต๋๋ค.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link href='https://fonts.googleapis.com/css?family=Karla' rel='stylesheet' type='text/css'>
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="./../dist/style.css">
<link rel="stylesheet" href="./../dist/reset.css">
<link rel="stylesheet" href="./../dist/subMnu.css"><script src="https://cdn.jsdelivr.net/npm/vue@2.6.0"></script>
<style>
.wrap{
width: 100%;
height: 100%;
}
.wrap>.container{
width: 1100px;
margin:0 auto;
height:100%;
}
.container>ul{
display: flex;
}</style>
</head><body>
<?php
include ("head.php");
?>
<template><div id ="app" class="wrap">
<div class="container">
<ul>
<li v-for="(a,i) in list" :key="i">
<p>{{list[i].content}}</p>
<video src="list[i].src"></video>
<span>{{list[i].desc}}</span>
</li>
</ul></div>
</div></template>
<?php
include ("tail.php");
?><script type="module">
import data from '../dist/video.js';
var app = new Vue({
el: "#app",
data() {
return {
list : data,
};
},
methods: {},
});</script>
</body>
</html>
2022๋ 4์ 27์ผ 14:29 #32682
codingappleํค ๋ง์คํฐ์ผ๋ฐ htmlํ์ผ์์ import ๋ฌธ๋ฒ์ ์ ์๋ ์ ์์ต๋๋ค
<script src="์ธ๋ถjsํ์ผ"></script>์ฐ๋ฉด ๋ฉ๋๋ค
-
๊ธ์ด์ด๊ธ
- ๋ต๋ณ์ ๋ก๊ทธ์ธ ํ ๊ฐ๋ฅํฉ๋๋ค.
