kindring 3 years ago
parent
commit
e29c04a17d
3 changed files with 28 additions and 1 deletions
  1. 19 0
      js/jsStore/一行js双返回值.js
  2. 1 1
      js/晨晨每日js.js
  3. 8 0
      js/花里胡哨.js

+ 19 - 0
js/jsStore/一行js双返回值.js

@@ -0,0 +1,19 @@
+/*
+ * @Description: 一行if双返回值
+ * @Autor: kindring
+ * @Date: 2021-10-29 10:28:57
+ * @LastEditors: kindring
+ * @LastEditTime: 2021-10-29 10:30:48
+ * @LastDescript: 
+ */
+
+/**
+ * 
+ */
+function oneIfTwo(n) {
+    if (n == 1) return (console.log(n)) & (console.log('被阻止了')) & (console.log('------------'))
+    console.log('正常运行');
+}
+
+oneIfTwo(1);
+oneIfTwo(2);

+ 1 - 1
js/晨晨每日js.js

@@ -3,7 +3,7 @@
  * @Autor: kindring
  * @Date: 2021-09-16 15:19:12
  * @LastEditors: kindring
- * @LastEditTime: 2021-09-16 15:19:13
+ * @LastEditTime: 2021-10-29 10:42:21
  * @LastDescript: 
  */
 let input = {

+ 8 - 0
js/花里胡哨.js

@@ -0,0 +1,8 @@
+/*
+ * @Description: 
+ * @Autor: kindring
+ * @Date: 2021-10-29 10:28:28
+ * @LastEditors: kindring
+ * @LastEditTime: 2021-10-29 10:28:29
+ * @LastDescript: 
+ */