class Contacts extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
);
}
}
export default Contacts;
这里面的super有什么用呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http://es6.ruanyifeng.com/#docs/class#Class的继承