摘要: ​ 目录 前言 导语 代码部分 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 导语 复杂工厂模式 ​编辑 代码部分 ``` //第一步 定义自行车的构造函数 两个属性 一个name和一个方法method var BicycleShop = function(name){ this 阅读全文
posted @ 2023-08-13 09:29 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create,useNotify, SimpleFor 阅读全文
posted @ 2023-08-13 09:26 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 export const UserCreate = (props) => { const transform = (data) => { const sanitizedData = {}; for (const key in data) { 阅读全文
posted @ 2023-08-13 09:26 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create,useNotify, SimpleFor 阅读全文
posted @ 2023-08-13 09:26 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 export const PostCreate = () => ( <Create title="New post"> ... </Create> ); 标题数据 阅读全文
posted @ 2023-08-13 09:25 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 const PostCreate = () => ( <Create resource="posts"> ... </Create> ); 资源导向 阅读全文
posted @ 2023-08-13 09:25 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 const PostCreate = () => ( <Create redirect="list"> ... </Create> ); 重定向视图 阅读全文
posted @ 2023-08-13 09:25 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create,useNotify, SimpleFor 阅读全文
posted @ 2023-08-13 09:24 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 import { useNotify } from 'react-admin'; const NotifyButton = () => { const notify = useNotify(); const handleClick = () 阅读全文
posted @ 2023-08-13 09:24 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: 我是歌谣 微信公众号关注前端小歌谣进入前端巅峰人才交流群 import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create, SimpleForm, TextInp 阅读全文
posted @ 2023-08-13 09:24 前端导师歌谣 阅读(7) 评论(0) 推荐(0)