componentDidMount () 方法在组件挂载后(插入DOM 树中)立即调用。 依赖于DOM 节点的初始化应该放在componentDidMount() 方法中。 以下实例会先输出runoob,然后使用 ...
確定! 回上一頁