随笔分类 -  TypeScript

摘要:写法一: import type { myOrderItem } from '@/API/pages_mine/myOrder/types'; const props = defineProps({ item: { type: Object as PropType<myOrderItem>, def 阅读全文
posted @ 2024-08-15 17:47 DL·Coder 阅读(7) 评论(0) 推荐(0) 编辑
摘要:子组件 // 组件名称:discountModel // 格式化数据 const fetchData = async () => { const { code, result } = await remind(); if(code 200) { data.value = result emit('u 阅读全文
posted @ 2024-07-25 10:40 DL·Coder 阅读(152) 评论(0) 推荐(0) 编辑
摘要:node.js 中的express的Router路由的使用:为了方便我们更好的根据路由模块。避免將所有路由都写在入口文件中。 npm i ts-node -g npm init -y npm i @types/node -D npm i express -D npm i @types/express 阅读全文
posted @ 2022-11-22 22:31 DL·Coder 阅读(351) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示