摘要: 前言 大家好 我是歌谣 今天继续给大家带来关于闭包的讲解 层级化代码 const store={ state:{ a:1 }, mutation:{ setA(state,num){ state.a=num } } } store.setA(3) store.setA=function(number 阅读全文
posted @ 2023-09-07 09:27 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: <Paper elevation={0} sx={{ display: "flex", flexWrap: "warp" }}> <ReferenceInput source='proc_solution_id' reference='t_prod_proc_solution'> <Autocomp 阅读全文
posted @ 2023-09-07 09:00 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <ReferenceInput source='machine_type_id' reference='t_prod_machine_type'> <AutocompleteInput variant='outlined' sx={{ mr: 1 }} /> </ReferenceInput> <R 阅读全文
posted @ 2023-09-07 08:59 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { useFormContext } from 'react-hook-form'; 数据重置操作 const MyButton = () => { const { reset, setFocus, getValues } = useFormContext<{ step_no: str 阅读全文
posted @ 2023-09-07 08:59 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: <Paper elevation={0} sx={{ display: "flex", flexWrap: "warp" }}> <ReferenceInput source='proc_solution_id' reference='t_prod_proc_solution'> <Autocomp 阅读全文
posted @ 2023-09-07 08:59 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: <Tabs value={solutionname} onChange={handleChange} aria-label="解决方案名称" > {machinechangeList && machinechangeList.map((item: any, idx: number) => { ret 阅读全文
posted @ 2023-09-07 08:58 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: import * as React from 'react'; import Tabs from '@mui/material/Tabs'; import Tab from '@mui/material/Tab'; import Box from '@mui/material/Box'; expor 阅读全文
posted @ 2023-09-07 08:58 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: {machinechangeList && machinechangeList.map((item: any, idx: number) => { return <Tab value={item.id.toString()} label={item.name} /> })} 运行结果 阅读全文
posted @ 2023-09-07 08:58 前端导师歌谣 阅读(22) 评论(0) 推荐(0)
摘要: import * as React from 'react'; import Box from '@mui/material/Box'; import Paper from '@mui/material/Paper'; import Stack from '@mui/material/Stack'; 阅读全文
posted @ 2023-09-07 08:57 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <Show resource='t_prod_style'> <Box sx={{ width: '200px' }} > <Card elevation={0}> <CardContent> <Divider textAlign="left">款式基本信息</Divider> <Grid cont 阅读全文
posted @ 2023-09-07 08:57 前端导师歌谣 阅读(5) 评论(0) 推荐(0)
摘要: 创建学校表 CREATE table t_geyao_school ( school_name VARCHAR(45) not null, id SERIAL NOT NULL PRIMARY KEY ) 创建班级表 是指主外键关系 CREATE table t_geyao_class ( scho 阅读全文
posted @ 2023-09-07 08:57 前端导师歌谣 阅读(3) 评论(0) 推荐(0)
摘要: import React from 'react'; import { createRoot } from 'react-dom/client'; const containerCssText = ` position: fixed; left: 0; bottom: 0; width: 100vw 阅读全文
posted @ 2023-09-07 08:57 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: const notify = useNotify() if (result !== undefined) { create('t_prod_step', { data: { machine_type_id: result.machine_type_id, part_id: result.part_i 阅读全文
posted @ 2023-09-07 08:56 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docume 阅读全文
posted @ 2023-09-07 08:55 前端导师歌谣 阅读(20) 评论(0) 推荐(0)
摘要: 1 存储大小不同 cookie: 4K, session : 5M, local:5M 2 数据有效期不同 cookie可以设置, 设置过期时间, 也可以手动清空 session:仅在浏览器关闭前有效 local:永久有效,除非手动清除 3 作用域 cookie在所有同源窗口共享 session仅在 阅读全文
posted @ 2023-09-07 08:55 前端导师歌谣 阅读(23) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2023-09-07 08:54 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: 案例 var arr = [-1, 1, 2, 2] console.log(arr); 方法1 filter 判断找到的第一个元素是否是其下标 var newArr = arr.filter(function (item, index) { return arr.indexOf(item) ind 阅读全文
posted @ 2023-09-07 08:54 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 前言 我是歌谣 最好的种树是十年前 其次是现在 今天继续给大家带来的是闭包的讲解 环境配置 npm init -y yarn add vite -D 修改page.json配置端口 { "name": "demo1", "version": "1.0.0", "description": "", " 阅读全文
posted @ 2023-09-07 08:54 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 前言 大家好 我是歌谣 今天继续给大家带来关于闭包的讲解 层级化代码 const store={ state:{ a:1 }, mutation:{ setA(state,num){ state.a=num } } } store.setA(3) store.setA=function(number 阅读全文
posted @ 2023-09-07 08:53 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: 前言 大家好 我是歌谣 今天给大家带来的是关于闭包的学习 首先 去创建一个新项目 环境配置 npm init -y yarn add vite -D 修改page.json配置端口 { "name": "demo1", "version": "1.0.0", "description": "", " 阅读全文
posted @ 2023-09-07 08:53 前端导师歌谣 阅读(12) 评论(0) 推荐(0)