
以下三种写法,可以参考:
const handleMenuClick = ({item, key, keyPath}: {item: Object, key: string, keyPath:string}) => {
}
const handleMenuClick = ({item, key, keyPath}: any) => {
}
interface SomeObj {
item: Object
key: string
keyPath:string
}
const handleMenuClick1 = ({item, key, keyPath}: SomeObj) => {
}











![【2024最新华为OD-C/D卷试题汇总】[支持在线评测] 整数数组按个位数字排序(100分) - 三语言AC题解(Python/Java/Cpp)](https://i-blog.csdnimg.cn/direct/7f0955c0732e4f82986a44738326811e.png)







