http://docs.fedoraproject.org/en-US/Fedora/18/pdf/Installation_Guide/Fedora-18-Installation_Guide-en-US.pdf
http://docs.fedoraproject.org/en-US/Fedora/17/pdf/System_Administrators_Guide/Fedora-17-System_Administrators_Guide-en-US.pdf
效果圖 實現代碼 componentDidMount = () => { // 用 ref 自動獲取輸入框焦點 const { input } = this.refInput; input.focus(); }
父組件調用子組件,利用$refs獲取子組件的方法 //子組件 export default { methods:{ prompts(txt){ alert(txt)