当前位置:网站首页>ts/js 函数传参带函数写法
ts/js 函数传参带函数写法
2022-08-05 08:36:00 【Sam young】
function a(fn: (value: number) => void) {
fn(1);
}
a((value) => {
console.log(value);
});
// 1
边栏推荐
猜你喜欢
随机推荐
执子之手,与子偕老。你同意么?
Redis缓存以及存在的问题--缓存穿透、缓存雪崩、缓存击穿及解决方法
v-if/v-else根据计算判断是否显示
路由----router
MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
嵌入式系统:基本定时器
TensorFlow安装步骤
谷歌零碎笔记之MVCC(草稿)
routing----router
P1103 书本整理
网络安全研究发现,P2E项目遭遇黑客攻击只是时间问题
画法几何及工程制图考试卷A卷
最 Cool 的 Kubernetes 网络方案 Cilium 入门教程
RedisTemplate: 报错template not initialized; call afterPropertiesSet() before using it
How to make a puzzle in PS, self-study PS software photoshop2022, PS make a puzzle effect
MVCC of Google's Fragmented Notes (Draft)
漂亮MM和普通MM的区别
Qt writes custom controls: one of the text spotlight effects
Version number naming convention
The color of life divine