Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
参数的props里的item有的时候渲染会没有值,只能这的判断一下,这样写对吗???
你可以这样给 props 设置一个默认值
const { items = [] } = props
大佬,我这个item是有自定义接口类型的,这的写其他地方就报错了,这的在props解构里怎样声明ts类型呢?@che