From 06b25d25969a067506485e8152260b2b9817dbd0 Mon Sep 17 00:00:00 2001 From: "3056762376@qq.com" <3056762376@qq.com> Date: Sat, 12 Nov 2022 15:44:49 +0800 Subject: [PATCH] changes --- .../ES5语法模块之间的调用/Select_one.js | 5 ++++- .../ES5语法模块之间的调用/Select_two.js | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_one.js b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_one.js index cffa741..f757580 100644 --- a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_one.js +++ b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_one.js @@ -5,6 +5,9 @@ function doing(name,sex) { return `我是${name},我是已经${sex}岁` } +function tj(n1,n2){ + return n1+n2; +} export{ - pd,doing + pd,doing,tj } \ No newline at end of file diff --git a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js index 9e40c07..08e3709 100644 --- a/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js +++ b/11-前端模块化开发/02-ES6模块化的实现/ES5语法模块之间的调用/Select_two.js @@ -1,2 +1,3 @@ -import { pd,doing } from "./Select_one.js"; -console.log(doing('张三','44')); \ No newline at end of file +import { pd,doing,tj } from "./Select_one.js"; +console.log(doing('张三','44')); +console.log(tj(20,10)); \ No newline at end of file