zheng 12 ore în urmă
părinte
comite
ee81dbc5c7

BIN
12.vue3/.DS_Store


BIN
12.vue3/项目/.DS_Store


+ 44 - 0
12.vue3/项目/接口.md

@@ -0,0 +1,44 @@
+<!-- 剧集 -->
+代理路径:https://m.douban.com/rexxar/api/v2
+
+剧集接口:/api/subject_collection/tv_domestic/items
+请求方式:get
+参数:
+count 条数
+start 开始条数
+
+<!-- 市集 -->
+代理路径:https://market.douban.com/api/v2
+接口:/markets/market/products
+参数count=10&start=0
+
+新品首发:/markets/market/home/modules
+
+<!-- 聊天 -->
+代理路径:https://ark.cn-beijing.volces.com/api/v3
+接口:/doubao/chat/completions
+方法:post
+参数:
+model:modelId
+stream:true
+messages:[
+    {
+        role:'system',
+        content:"You are a helpful assistant"
+    },
+    {
+    role:"user",
+    content: xxx
+    }
+]
+
+
+<!-- 地图 -->
+代理路径:https://api.map.baidu.com/place/v2
+接口:/baidu/search
+方法:get
+参数:
+    output:'json'
+    query:xxx
+    region:中国,
+    ak:f4kDaDi4KeEays8NRSTneUdGkAGx5fLq

+ 28 - 0
13.正则/1.认识正则表达式.html

@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+</head>
+<body>
+    <script>
+        // 正则:const 名称 = /规则/;
+        const reg = /西游记/g;
+        // 1.test 匹配文本中是否包含校验的字符  返回布尔值
+        const str = '红楼梦是四大名著之一';
+        console.log(reg.test(str));
+        // 2.exec() 返回数组格式 查找符合条件的字符
+        const res = reg.exec("西游记是一本神话故事,我喜欢看西游记");
+        console.log(res);
+        // 3.replace 替换指定字符
+        const str1 = '西游记是四大名著之一';
+        const res1 = str1.replace(reg,'红楼梦');
+        console.log(res1);
+        // 4.match 在字符串中查找符合规则的正则
+        const str2 = '西游记是一本神话故事,我喜欢看西游记';
+        const res2 = str2.match(reg);
+        console.log(res2);
+    </script>
+</body>
+</html>

+ 20 - 0
13.正则/2.修饰符.html

@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+</head>
+<body>
+    <script>
+        // 修饰符
+        // i 不区分大小写
+        // g 匹配全局
+        const reg = /ab/gi;
+        console.log(reg.test("AbAb"));
+
+        const str = 'Ab apple,ab sda';
+        console.log(str.match(reg));
+    </script>
+</body>
+</html>

BIN
13.正则/元字符.jpg


BIN
13.正则/量词.jpg