From d227dd70d578b17b4a32e64aab7d7fc220a127c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lv=E4=B8=B6=E5=B0=8F=E8=83=96?= <865830846@qq.com> Date: Thu, 13 Jul 2023 06:01:18 +0000 Subject: [PATCH] =?UTF-8?q?add=20js/reminderMerchants.js.=20=E8=BF=99?= =?UTF-8?q?=E7=BB=9D=E5=AF=B9=E6=98=AF=E4=B8=96=E4=B8=8A=E6=9C=80=E5=BF=AB?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E9=86=92=E5=95=86=E5=AE=B6=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E5=8A=9F=E8=83=BD.=20=E4=BA=8B=E6=83=85=E7=9A=84=E8=B5=B7?= =?UTF-8?q?=E5=9B=A0:=20=E5=81=9A=E4=BA=86=E4=B8=80=E4=B8=AA=E5=95=86?= =?UTF-8?q?=E5=9F=8E,=20=E9=A9=AC=E4=B8=8A=E5=B0=B1=E8=A6=81=E4=B8=8A?= =?UTF-8?q?=E7=BA=BF=E4=BA=86,=20=E5=AE=A2=E6=88=B7=E8=AF=B4=E8=BF=98?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA,=20?= =?UTF-8?q?=E6=8F=90=E9=86=92=E5=95=86=E5=AE=B6=E5=8F=91=E8=B4=A7=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD,=E7=84=B6=E5=90=8E=E5=B0=B1=E6=9C=89?= =?UTF-8?q?=E4=BA=86=E8=BF=99=E4=B8=80=E6=AE=B5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lv丶小胖 <865830846@qq.com> --- js/reminderMerchants.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 js/reminderMerchants.js diff --git a/js/reminderMerchants.js b/js/reminderMerchants.js new file mode 100644 index 0000000..ea51d8e --- /dev/null +++ b/js/reminderMerchants.js @@ -0,0 +1,17 @@ +/** + * 事情的起因: + * 同事做了一个商城, 马上就要上线了, 客户说还需要增加一个, 提醒商家发货的功能,然后就有了下面一段代码 + * 然后过了几天,客户问: 为什么点击这个提醒商家的功能没什么用呢 + * 我心里想: 这要是有用才是见了鬼了呢 + */ +// 页面按钮 +// + +// 获取按钮元素 +var reminder = document.getElementById("reminder"); + +// 添加点击事件监听器 +reminder.addEventListener("click", function() { + // 弹窗提示 + alert("已提醒商家,尽快为您发货!"); +}); \ No newline at end of file -- Gitee