<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #### 舉例 父組件: ~~~ var React = require('react'); import {render} from 'react-dom'; import {Router, Route, Link} from 'react-router'; import '../style/index.css'; import Headnav from './indexComponents/headnav.jsx'; import Content from './indexComponents/content.jsx'; import Footer from './indexComponents/footer.jsx'; var Index = React.createClass({ getInitialState: function () { return {}; }, handleGet: function(val){ this.setState({test: val}); }, render: function () { return ( <div className="main"> <Headnav /> <div>所傳的值:{this.state.test}</div> <Content handleValue={this.handleGet.bind(this)}/> <Footer /> </div> ); } }); module.exports = Index; ~~~ 子組件 ~~~ import React from 'react'; import {render} from 'react-dom'; import {Router, Route, Link} from 'react-router'; var Content = React.createClass({ getInitialState: function () { return {testVal: 'Hello Runoob!'}; }, handAttribute:function(){ this.props.handleValue(this.state.testVal); }, render: function () { return ( <div className="content"> this is content <input onChange={this.handAttribute}/> </div> ); } }); module.exports = Content; ~~~ #### 關系圖: ![](https://box.kancloud.cn/db37131c6530d830b202d06cb0ea4856_1210x576.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看