摘要:
const [form] = Form.useForm() form.setFieldsValue({ customerCode: data.customerCode, orderCode: data.orderCode, count: data.count }) 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(22)
评论(0)
推荐(0)
摘要:
interface geyao{ name?: number age?: string sex?: string orderCode?: string planDate?: string size_name?: string hello?: string status?: string } 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(17)
评论(0)
推荐(0)
摘要:
声明顺序 1const 2let 3usestate 4useeffect 5普通函数 只是自己这样子声明 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(19)
评论(0)
推荐(0)
摘要:
git history gitLens 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(44)
评论(0)
推荐(0)
摘要:
// 歌谣:当变量发生变化的时候执行该副作用 useEffect(()=>{ let temp = getToken(); if(temp !== undefined){ setCookie(temp); setLogined(true); }else{ console.log('setLogine 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(33)
评论(0)
推荐(0)
摘要:
export interface IColumns { name: string; age: number; title: string; } 定义简单的接口 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(55)
评论(0)
推荐(0)
摘要:
const [xxx] = useQueryTableColumnsMutation(); useEffect(() => { queryTableColumns(“xxx”) .unwrap() .then((response) => { }); 当接口请求拼接的时候要用模板字符串懂了吧 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(22)
评论(0)
推荐(0)
摘要:
query: (data) => { return { url: `xxx`, method: xxx, data: xxx } } 参数的话可以从query进行一个传入操作 data可以传入到body 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(22)
评论(0)
推荐(0)
摘要:
ajax.js // 引用expess框架 const express = require('express'); // 处理路径 const path = require('path'); // 创建网站服务器 const app = express(); app.get('/first', (r 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(23)
评论(0)
推荐(0)
摘要:
ajax.js // 引用expess框架 const express = require('express'); // 处理路径 const path = require('path'); // 创建网站服务器 const app = express(); app.get('/first', (r 阅读全文
posted @ 2022-08-13 21:30
前端导师歌谣
阅读(28)
评论(0)
推荐(0)

浙公网安备 33010602011771号