From 6fe482e650b4113aa40ec1a9c5171a75f56f1edd Mon Sep 17 00:00:00 2001 From: blue250 <885054824@qq.com> Date: Wed, 19 Jul 2023 11:00:33 +0800 Subject: [PATCH] =?UTF-8?q?||=E8=BF=90=E7=AE=97=E7=AC=A6=E7=9A=84=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/operato.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 js/operato.js diff --git a/js/operato.js b/js/operato.js new file mode 100644 index 0000000..50dbd24 --- /dev/null +++ b/js/operato.js @@ -0,0 +1,9 @@ +// 之前同事写的代码 好久之前的了 没找到记录 大概还原一下 +// 这段代码在线上用了一周才被我发现问题 +// 论或运算符的正确用法 +if(billinfo.billCode=='claim'||'borr'){ + // 它咋一直是true呢? + fun1() +}else{ + fun2() +} \ No newline at end of file -- Gitee