react渲染條件
阿新 • • 發佈:2018-06-25
type 驗證 select input DC react button 100% reac 用數組渲染:
用括號渲染:
<Search placeholder="請輸入驗證碼" enterButton="獲取驗證碼" onSearch={this.sendcode} size="large" key="1" />, <Input placeholder="請輸入密碼" type="password" size="large" style={{ marginTop:"10px" }} key="2" />, <Input placeholder="請輸入密碼" type="password" size="large" style={{ marginTop:"10px" }} key="3" />
<Select onChange={this.movearticleclass} size="large" style={{ width:"100%" }} showSearch={true} > <Option value="一級分類一">一級分類一</Option> <Option value="一級分類二">一級分類二</Option> <Option value="一級分類三">一級分類三</Option> </Select>
react渲染條件