上一页 1 2 3 4 5 6 ··· 26 下一页
一、环境搭建 https://go.dev/dl/ 查看是arm64,还是x86-64命令: -uname -a 我的是 Darwin okerdeMacBook-Pro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PD Read More
posted @ 2024-08-14 10:05 走走停停走走 Views(1566) Comments(0) Diggs(0)
前言:第一次用到多选,gpt非常好用,比之前网页方便太多。 import ProTable from '@ant-design/pro-table'; import React, { useState } from 'react'; const TableWithRowSelection = () Read More
posted @ 2024-08-12 16:56 走走停停走走 Views(642) Comments(0) Diggs(0)
posted @ 2024-06-27 09:47 走走停停走走 Views(18) Comments(0) Diggs(0)
6月26日 前几天我加上了,但其实理解,并不深刻。因为因为要加上static路径,就懵了。 // 静态文件服务 app.use('/static', express.static(path.join(__dirname, 'dist'))); app.get('/*', (req, res) => Read More
posted @ 2024-06-19 22:50 走走停停走走 Views(112) Comments(0) Diggs(0)
前言:一种是provider,一种是signer 方式一:直接获取 const EtherJS = require('etherjs'); // 创建一个Provider实例,指向你的以太坊节点 const provider = new EtherJS.providers.JsonRpcProvid Read More
posted @ 2024-06-04 17:47 走走停停走走 Views(329) Comments(0) Diggs(0)
在使用Ant Design的Upload组件时,如果不提供action属性,那么文件的上传处理需要通过customRequest属性来自定义实现。 以下是一个不使用action属性,而是通过customRequest实现文件上传的例子: import React from 'react'; impo Read More
posted @ 2024-05-13 14:54 走走停停走走 Views(750) Comments(0) Diggs(0)
需求: 所属网络(select)变化的时候,对应空投合约(select)也跟着变化。 const onChainChange = (chainId: any) => { setCurrChainId(chainId) const currOptions = extraObj.airdropContr Read More
posted @ 2024-05-08 17:23 走走停停走走 Views(208) Comments(0) Diggs(0)
前言:页面太多的时候,就不能用枚举了。还是路由比较靠谱。 官方网站:https://reactrouter.com/en/main 官方示例:v5版本(建议不要再看了) https://v5.reactrouter.com/web/guides/quick-start GitHub官方代码: htt Read More
posted @ 2024-04-24 22:08 走走停停走走 Views(63) Comments(0) Diggs(0)
前言:发现chakra-ui也不错,虽然比起antd功能稍少一点。 1,Stack与Flex区别 Notes on Stack vs Flex#The Stack component and the Flex component have their children spaced out even Read More
posted @ 2024-04-23 22:08 走走停停走走 Views(296) Comments(0) Diggs(0)
vmin 和 vmax 单位 vmin 是相对于视口宽度和高度中较小值进行计算,它的值为视口宽度和高度中的较小值的百分比。 例如,如果视口宽度为 800px,高度为 1000px,那么 1vmin 等于 8px(800px 的 1%)。 vmax 是相对于视口宽度和高度中较大值进行计算,它的值为视口 Read More
posted @ 2024-04-23 21:03 走走停停走走 Views(297) Comments(0) Diggs(0)
上一页 1 2 3 4 5 6 ··· 26 下一页