This commit is contained in:
3056762376@qq.com 2022-11-12 16:05:26 +08:00
parent 06b25d2596
commit bb364d24c1
6 changed files with 33 additions and 7 deletions

View File

@ -1,3 +0,0 @@
import { pd,doing,tj } from "./Select_one.js";
console.log(doing('张三','44'));
console.log(tj(20,10));

View File

@ -9,7 +9,7 @@
<body>
</body>
<script src="./Select_one.js" type="module"></script>
<script src="./Use_one.js " type="module"></script>
<script src="./Select_two.js" type="module"></script>
<script src="../Select_one.js" type="module"></script>
<script src="../Use_one.js " type="module"></script>
<script src="../Select_two.js" type="module"></script>
</html>

View File

@ -0,0 +1,7 @@
import { pd,doing,tj } from "./Select_one.js";
console.log(doing('张三','44'));
console.log(tj(20,10));
import { content } from "./Use_one.js";
console.log(content);
import { fun } from "./Use_one.js";
console.log(fun());

View File

@ -7,4 +7,11 @@ function doings(pd){
}
}
console.log(doing("小小", "22"));
console.log(pd);
console.log(pd);
export let content="你好啊webpack"
export function fun() {
let name="张三"
let height="1.78"
let content=`${name}的身高${height}cm`
return content
}

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
<script src="./Select_one.js" type="module"></script>
<script src="./Use_one.js " type="module"></script>
<script src="./Select_two.js" type="module"></script>
</html>