上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 49 下一页
摘要: 1. vt vue3 template "vue3 template": { "prefix": "vt", "body": [ "<script setup>", " $1", "</script>", "", "<template>", " <div>", " $2", " </div>", & 阅读全文
posted @ 2022-11-30 14:13 LeoShi2020 阅读(134) 评论(0) 推荐(0)
摘要: 1. 响应式数据 2. 箭头函数 // 箭头函数后面不加大括号,默认只能有一行代码,默认return; const doubleCount1 = computed(() => count.value * 2) // 箭头函数后面加大括号,默认没有return; const doubleCount2 阅读全文
posted @ 2022-11-30 14:01 LeoShi2020 阅读(680) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130131301889-1994312766.png) 阅读全文
posted @ 2022-11-30 13:48 LeoShi2020 阅读(63) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130121629819-656282514.png) ![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130121715809-1152173219.png) 阅读全文
posted @ 2022-11-30 12:18 LeoShi2020 阅读(35) 评论(0) 推荐(0)
摘要: 1. 安装依赖 pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com python-multipart 2. 表单程序 . ├── post_test_1.py └── templates ├── i 阅读全文
posted @ 2022-11-11 20:59 LeoShi2020 阅读(66) 评论(0) 推荐(0)
摘要: 1. 插件库 pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com jinja2 aiofiles 2. 模板渲染程序 2.1 Python程序 # _*_ coding: UTF-8 _*_ fro 阅读全文
posted @ 2022-11-11 20:23 LeoShi2020 阅读(158) 评论(0) 推荐(0)
摘要: 1. 环境搭建 https://www.cnblogs.com/leoshi/p/15567193.html /root/.pyenv/versions/3.9.14/bin/python3.9 -m pip install -i http://pypi.douban.com/simple/ --t 阅读全文
posted @ 2022-11-11 19:16 LeoShi2020 阅读(56) 评论(0) 推荐(0)
摘要: 1. 默认绑定 // 全局环境指向window console.log(this); // 函数独立调用,函数内部this指向window function fn() { console.log(this); } fn(); // 函数当做对象方法来调用,this指向对象 var x = 666; 阅读全文
posted @ 2022-11-11 12:58 LeoShi2020 阅读(24) 评论(0) 推荐(0)
摘要: 1. 闭包函数 // 闭包函数 var a = 123; function f1() { console.log(a); var b =234; function f2() { console.log(b); } return f2; } // 打印a 123 result 被赋值为f2函数 var 阅读全文
posted @ 2022-11-10 17:53 LeoShi2020 阅读(33) 评论(0) 推荐(0)
摘要: 1. 执行流 // 执行流 var a = 1; // 1 var b = 2; // 2 function fn(x) { var a = 10; // 4 function bar(x) { // 6 // 11 var a = 100; // 7 a=100 // 12 a=100 b = x 阅读全文
posted @ 2022-11-10 17:07 LeoShi2020 阅读(38) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 49 下一页