摘要:
逻辑复用-组合式函数 src/views/ad/User.vue <script setup> import { useMouse } from "../../js/mouse.js"; import { useFetch } from "../../js/fetch.js"; import { r 阅读全文
posted @ 2023-12-26 16:10
carol2014
阅读(52)
评论(0)
推荐(0)
摘要:
组件 src/views/ad/Comp.vue <script setup> import { ref, provide, readonly, defineAsyncComponent } from "vue"; import DemoComp from "../../components/sim 阅读全文
posted @ 2023-12-26 15:54
carol2014
阅读(28)
评论(0)
推荐(0)
摘要:
响应式状态 src/views/basic/Reactive.vue <script setup> import { ref, reactive, computed, watch, watchEffect } from "vue"; //reactive 响应式对象 只能用于对象、数组和集合类型 c 阅读全文
posted @ 2023-12-26 15:23
carol2014
阅读(53)
评论(0)
推荐(0)
摘要:
事件绑定 src/views/basic/Event.vue <script setup> import { nextTick, ref } from "vue"; function clickA() { console.log("点击了a标签,点击事件传递到了外层p标签"); } function 阅读全文
posted @ 2023-12-26 15:17
carol2014
阅读(137)
评论(0)
推荐(0)
摘要:
表单相关 src/views/basic/Form.vue <script setup> import { ref } from "vue"; const message = ref("hello"); const checked = ref(); const checkedNames = ref( 阅读全文
posted @ 2023-12-26 15:04
carol2014
阅读(42)
评论(0)
推荐(0)
摘要:
模板语法 src/views/basic/Template.vue <script setup> import { ref, reactive, onMounted } from "vue"; //模板语法 const msg = "hello"; const rawHtml = "<span st 阅读全文
posted @ 2023-12-26 15:00
carol2014
阅读(60)
评论(0)
推荐(0)
摘要:
我的vue3学习之路总是学学停停,最开始在18年开发微信小程序,就发现小程序和vue的语法有些相似,然后就去看了vue2的文档,随后忙其它的事情就丢下了。 直到22年又开始捡起来vue3,有了组合式api,语法简明很多,然后又不知道忙什么丢下。。。 前段有些空时间,就把vue3的学习整理下,使用vi 阅读全文
posted @ 2023-12-26 14:55
carol2014
阅读(73)
评论(0)
推荐(0)
摘要:
这次是被坑了,在 linux apache 运行完好的代码放到 IIS 服务器上居然没有数据,检查发现居然出现了 419 错误,要求 ajax post 请求中应该包含 csrf token 字段。 检查发现:在 laravel 中间件 app/Http/Middleware/VerifyCsrfT 阅读全文
posted @ 2023-12-26 10:34
carol2014
阅读(205)
评论(0)
推荐(0)
摘要:
路由 Django 默认项目有根 urls.py,各 app 下分别有自己的 urls.py,既集中又分治,是一种解耦的模式。 from django.urls import include, path urlpatterns = [ path('article/', include('articl 阅读全文
posted @ 2023-12-20 16:28
carol2014
阅读(22)
评论(0)
推荐(0)
摘要:
HTML5 dialog标签简单使用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1 阅读全文
posted @ 2023-12-20 16:05
carol2014
阅读(123)
评论(0)
推荐(0)
浙公网安备 33010602011771号