当前位置:网站首页>ts/js function pass parameter with function writing
ts/js function pass parameter with function writing
2022-08-05 08:38:00 【Sam young】
function a(fn: (value: number) => void) {
fn(1);
}
a((value) => {
console.log(value);
});
// 1
边栏推荐
猜你喜欢
随机推荐
unity urp 渲染管线顶点偏移的实现
512-color chromatogram
TensorFlow installation steps
JS语法使用
工程制图知识点
Qt writes custom controls: one of the text spotlight effects
How to make a puzzle in PS, self-study PS software photoshop2022, PS make a puzzle effect
What is the connection and difference between software system testing and acceptance testing? Professional software testing solution recommendation
egg框架
七夕给自己new一个chatRobot当对象
MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
软件系统测试和验收测试有什么联系与区别?专业软件测试方案推荐
P1103 书本整理
[Untitled] Long-term recruitment of hardware engineers-Shenzhen Baoan
DPU — 功能特性 — 安全系统的硬件卸载
k-nearest neighbor fault monitoring based on multi-block information extraction and Mahalanobis distance
Ethernet Principle
【每日一题】1403. 非递增顺序的最小子序列
Chapter 12 Bayesian Networks
学习笔记14--机器学习在局部路径规划中的应用








