2017-05-26 35 views

回答

0
this.isReq.bind(this) 

好像你的電話是超出範圍的嘗試。

+0

仍然得到同樣的錯誤 – Anna

+0

只是'this.isReq()調用' – 2017-05-26 12:23:16

+0

綁定()是一個隨需應變的函數調用所以沒有需要那個 – 2017-05-26 12:23:39

0

可以使用::綁定運營商這樣

... 
<input 
    type='text' 
    required={ ::this.isReq } 
    requiredMessage="Enter the Validity End Period." 
/> 
... 
相關問題