神采飞阳

 

2021年8月22日

inject注入函数

摘要: 在父组件中const handleFunction= (e) => { 相关代码};provide("handleFunction",handleFunction); const fn = inject('handleFunction',Function,true); 然后调用方法fn fn(参数) 阅读全文

posted @ 2021-08-22 21:05 神采飞阳 阅读(522) 评论(0) 推荐(0)

导航