From bb364d24c1904b5a8bb30d884ad4c87982e3e117 Mon Sep 17 00:00:00 2001 From: "3056762376@qq.com" <3056762376@qq.com> Date: Sat, 12 Nov 2022 16:05:26 +0800 Subject: [PATCH] changes --- .../ES5语法模块之间的调用/Select_two.js | 3 --- .../ES5语法模块之间的调用/index.html | 6 +++--- .../Select_one.js | 0 .../02-ES6模块化的实现/Select_two.js | 7 +++++++ .../Use_one.js | 9 ++++++++- .../02-ES6模块化的实现/index.html | 15 +++++++++++++++ 6 files changed, 33 insertions(+), 7 deletions(-) delete mode 100644 11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js rename 11-前端模块化开发/02-ES6模块化的实现/{ES5语法模块之间的调用 => }/Select_one.js (100%) create mode 100644 11-前端模块化开发/02-ES6模块化的实现/Select_two.js rename 11-前端模块化开发/02-ES6模块化的实现/{ES5语法模块之间的调用 => }/Use_one.js (53%) create mode 100644 11-前端模块化开发/02-ES6模块化的实现/index.html diff --git a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js deleted file mode 100644 index 08e3709..0000000 --- a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js +++ /dev/null @@ -1,3 +0,0 @@ -import { pd,doing,tj } from "./Select_one.js"; -console.log(doing('张三','44')); -console.log(tj(20,10)); \ No newline at end of file diff --git a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/index.html b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/index.html index 32c4ce2..3cebf71 100644 --- a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/index.html +++ b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/index.html @@ -9,7 +9,7 @@ - - - + + + \ No newline at end of file diff --git a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_one.js b/11-前端模块化开发/02-ES6模块化的实现/Select_one.js similarity index 100% rename from 11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_one.js rename to 11-前端模块化开发/02-ES6模块化的实现/Select_one.js diff --git a/11-前端模块化开发/02-ES6模块化的实现/Select_two.js b/11-前端模块化开发/02-ES6模块化的实现/Select_two.js new file mode 100644 index 0000000..cc3e231 --- /dev/null +++ b/11-前端模块化开发/02-ES6模块化的实现/Select_two.js @@ -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()); \ No newline at end of file diff --git a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Use_one.js b/11-前端模块化开发/02-ES6模块化的实现/Use_one.js similarity index 53% rename from 11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Use_one.js rename to 11-前端模块化开发/02-ES6模块化的实现/Use_one.js index 2f330df..d563239 100644 --- a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Use_one.js +++ b/11-前端模块化开发/02-ES6模块化的实现/Use_one.js @@ -7,4 +7,11 @@ function doings(pd){ } } console.log(doing("小小", "22")); -console.log(pd); \ No newline at end of file +console.log(pd); +export let content="你好啊,webpack" +export function fun() { + let name="张三" + let height="1.78" + let content=`${name}的身高${height}cm` + return content +} \ No newline at end of file diff --git a/11-前端模块化开发/02-ES6模块化的实现/index.html b/11-前端模块化开发/02-ES6模块化的实现/index.html new file mode 100644 index 0000000..32c4ce2 --- /dev/null +++ b/11-前端模块化开发/02-ES6模块化的实现/index.html @@ -0,0 +1,15 @@ + + + + + + + Document + + + + + + + + \ No newline at end of file