02 2023 档案
摘要:qiandu首先可以自定义配置 文件1 config.ts import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import translation_en from './en.json'; im
阅读全文
摘要:表单验证错误时候的回调事件 const onFinishFailed = (errorInfo: any) => { console.log("Failed:", errorInfo); };
阅读全文
摘要:<Input placeholder="用户名:admin / user" prefix={<UserOutlined />} />
阅读全文
摘要:export namespace Login { export interface ReqLoginForm { username: string; password: string; } export interface ResLogin { access_token: string; } } 命
阅读全文
摘要:安装 npm install js-md5 (1)用js对私密信息加密可避免在网络中传输明文信息,被人截取数据包而造成数据泄露。 (2)避免缓存中自动缓存密码。比如在使用谷歌浏览器登陆时,输入的用户名和密码会自动缓存,下次登陆时无需输入密码就可以实现登陆,这样就给别人留下漏洞,当别人用你电脑登陆或把
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:https://github.com/raphiniert-com/ra-data-postgrest 一定要多去gitHub 好项目多多
阅读全文
摘要:判断数组中有几个元素 数组长度+1
阅读全文
摘要:先安装npm install json-server db.json创建数据 json-server --watch db.json { "brands": [ { "id": 1, "name": "宝马", "ctime": "2020-02-02 10:10:10" }, { "id": 2,
阅读全文
摘要:snipaster 可以剪切在桌面
阅读全文
摘要:将输入的每一个值存到localStorage 点击按钮的时候进行重新赋值即可 let userInfo: ILoginParams = { username: user.username, password: user.password, act: user.act }; const handleU
阅读全文
摘要:移动端的轻提示 content内容 duration 弹出提示的毫秒数 position位置 Toast.show({ content: '这条提示不会自动消失', duration: 0,position: 'top'})
阅读全文
摘要:produce package javalearn.ArrayLearn; public class Produce { private String id; private String name; private double price; private int count; public P
阅读全文
摘要:GameTest package javalearn.CombatGame; public class GameTest { public static void main(String[] args) { Role r1=new Role("歌谣",100); Role r2=new Role("
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:项目中为了避免对象下面不存在某属性 可以用?.控制是否继续向下执行
阅读全文
摘要:response.data?.recordList && response.data?.recordList.map((item: any, index: number) => { formList.setFieldsValue({ [`batchCode-${item.key + 1}`]: it
阅读全文
摘要:首先进行git的创建 本地文件进行git init 然后git clone 然后复制文件进入目录 git add . git commit -m "修改" git push
阅读全文
摘要:useEffect(() => { (async function fn() { const response = await selectReceiveMaterialRecord({ billDetailId: billDetailId, }); form.setFieldsValue({ ma
阅读全文
摘要:<Form name="menu" form={formList}> {pickList && pickList.map((item: any, index: number) => ( <> <Form.Item label={`缸号${item.key + 1}`} name={`batchCod
阅读全文
摘要:对于数据中的页面数据回显需要使用手动赋值 直接useEffect进行手动判断 useEffect(() => { form.setFieldsValue({ layer: menu?.layer, deformity: menu?.deformity, }); }, [menu]);
阅读全文
摘要:打包的时候先用vs code npm run build 然后用hbuiiderx进行云打包 发行-原生app打包 配置入口
阅读全文
摘要:Git - Downloading Package 先进入官网进行git下载 傻瓜式安装
阅读全文
摘要:项目中为了防止某些数值为空 可以利用三元运算符判断 <div>缸号:{menu.batchCode ? menu.batchCode : "无"}</div>
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:jav
阅读全文
摘要:生成六位随机数数组
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:添加大小写字母
阅读全文
摘要:取出随机字符
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:public class Demo08 { public static void main(String[] args) { //定义一个数组 int[] arr ={1,2,3,4,5}; for (int i = 0,j=arr.length-1; i < j; i++,j--) { int t
阅读全文
摘要:public class Demo07 { public static void main(String[] args) { int arr[]={44,22,33,66,77}; int max=arr[0]; for (int i = 0; i < arr.length; i++) { if(m
阅读全文
摘要:
阅读全文
摘要:准备随机数
阅读全文
摘要:定义ref对象类型 type FileStateStatus = { reset?: () => void; fileList?: RcFile[] } export interface FileState { current?: FileStateStatus , } const fileStat
阅读全文
摘要:调整usestate和useEffect的顺序 声明统一放在上面 TS限制一下数据格式类型
阅读全文
摘要:public class Demo05 { public static void main(String[] args) { //定义一个数组1,2,3,4,5,6,7,8,9,10 int[] arr = {1,2,3,4,5}; for (int i = 0; i < arr.length; i
阅读全文
摘要:public class Demo04 { public static void main(String[] args) { //定义数组 int[] arr = {1,2,3,4,5}; System.out.println(arr[0]); System.out.println(arr[1]);
阅读全文
摘要:计算能够被3整除的数字数组个数
阅读全文
摘要:idea快捷键 arr.for+i就可以生成循环 数组的累加求和
阅读全文