react 調用帶參的函數

函數:函數 showDate (data){ //獲取到穿過來的datathis console.log("data========================>"+data);console };方法 調用bind 方法一:箭頭函數co <Button onClick={()=>this.showDate (1)}>點我</Button>  //這裏的1就是傳過去的參數data 方法二:bi
相關文章
相關標籤/搜索