随笔分类 - TypeScript
摘要:写法一: import type { myOrderItem } from '@/API/pages_mine/myOrder/types'; const props = defineProps({ item: { type: Object as PropType<myOrderItem>, def
阅读全文
摘要:子组件 // 组件名称:discountModel // 格式化数据 const fetchData = async () => { const { code, result } = await remind(); if(code 200) { data.value = result emit('u
阅读全文
摘要: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
阅读全文