diff --git a/js/operato.js b/js/operato.js new file mode 100644 index 0000000000000000000000000000000000000000..50dbd2445fe52f20ddbd8c11ee6688e1f7e965a1 --- /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