我们可以使用 onChange 事件来监听 input 的变化,并修改 state

React 表单与事件

本章节我们将讨论如何在 React 中使用表单。

HTML 表单元素与 React 中的其他 DOM 元素有所不同,因为表单元素生来就保留一些内部状态。

在 HTML 当中,像 <input>, <textarea>, 和 <select> 这类表单元素会维持自身状态,并根据用户输入进行更新。但在React中,可变的状态通常保存在组件的状态属性中,并且只能用 setState() 方法进行更新。

一个简单的实例

在实例中我们设置了输入框 input 值value = {this.state.data}。在输入框值发生变化时我们可以更新 state。我们可以使用onChange事件来监听 input 的变化,并修改 state。

React 实例

class HelloMessage extends React.Component { constructor(props) { super(props); this.state = {value: 'Hello Runoob!'}; this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.setState({value: event.target.value}); } render() { var value = this.state.value; return <div> <input type="text" value={value} onChange={this.handleChange} /> <h4>{value}</h4> </div>; } } const root = ReactDOM.createRoot(document.getElementById("root")); root.render( <HelloMessage /> );


尝试一下 »

上面的代码将渲染出一个值为 Hello Runoob! 的 input 元素,并通过 onChange 事件响应更新用户输入的值。

实例 2

在以下实例中我们将为大家演示如何在子组件上使用表单。onChange方法将触发 state 的更新并将更新的值传递到子组件的输入框的value上来重新渲染界面。

你需要在父组件通过创建事件句柄 (handleChange) ,并作为 prop (updateStateProp) 传递到你的子组件上。

React 实例

class Content extends React.Component { render() { return ( <div> <input type="text" value={this.props.myDataProp} onChange={this.props.updateStateProp} /> <h4>{this.props.myDataProp}</h4> </div> ); } } class HelloMessage extends React.Component { constructor(props) { super(props); this.state = { value: 'Hello Runoob!' }; this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.setState({ value: event.target.value }); } render() { var value = this.state.value; return ( <div> <Content myDataProp={value} updateStateProp={this.handleChange} /> </div> ); } } const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<HelloMessage />);


尝试一下 »

Select 下拉菜单

在 React 中,不使用 selected 属性,而在根 select 标签上用 value 属性来表示选中项。

React 实例

class FlavorForm extends React.Component { constructor(props) { super(props); this.state = {value: 'coconut'}; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { this.setState({value: event.target.value}); } handleSubmit(event) { alert('Your favorite flavor is: ' + this.state.value); event.preventDefault(); } render() { return ( <form onSubmit={this.handleSubmit}> <label> 选择您最喜欢的网站 <select value={this.state.value} onChange={this.handleChange}> <option value="gg">Google</option> <option value="rn">Runoob</option> <option value="tb">Taobao</option> <option value="fb">Facebook</option> </select> </label> <input type="submit" value="提交" /> </form> ); } } const root = ReactDOM.createRoot(document.getElementById("root")); root.render( <FlavorForm /> );


尝试一下 »

多个表单

当你有处理多个 input 元素时,你可以通过给每个元素添加一个 name 属性,来让处理函数根据 event.target.name 的值来选择做什么。

React 实例

class Reservation extends React.Component { constructor(props) { super(props); this.state = { isGoing: true, numberOfGuests: 2 }; this.handleInputChange = this.handleInputChange.bind(this); } handleInputChange(event) { const target = event.target; const value = target.type === 'checkbox' ? target.checked : target.value; const name = target.name; this.setState({ [name]: value }); } render() { return ( <form> <label> 是否离开: <input name="isGoing" type="checkbox" checked={this.state.isGoing} onChange={this.handleInputChange} /> </label> <br /> <label> 访客数: <input name="numberOfGuests" type="number" value={this.state.numberOfGuests} onChange={this.handleInputChange} /> </label> </form> ); } }


尝试一下 »


React 事件

以下实例演示通过 onClick 事件来修改数据:

React 实例

class HelloMessage extends React.Component { constructor(props) { super(props); this.state = {value: 'Hello Runoob!'}; this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.setState({value: '菜鸟教程'}) } render() { var value = this.state.value; return <div> <button onClick={this.handleChange}>点我</button> <h4>{value}</h4> </div>; } } const root = ReactDOM.createRoot(document.getElementById("root")); root.render( <HelloMessage /> );


尝试一下 »

当你需要从子组件中更新父组件的state时,你需要在父组件通过创建事件句柄 (handleChange) ,并作为 prop (updateStateProp) 传递到你的子组件上。实例如下:

React 实例

class Content extends React.Component { render() { return <div> <button onClick = {this.props.updateStateProp}>点我</button> <h4>{this.props.myDataProp}</h4> </div> } } class HelloMessage extends React.Component { constructor(props) { super(props); this.state = {value: 'Hello Runoob!'}; this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.setState({value: '菜鸟教程'}) } render() { var value = this.state.value; return <div> <Content myDataProp = {value} updateStateProp = {this.handleChange}></Content> </div>; } } const root = ReactDOM.createRoot(document.getElementById("root")); root.render( <HelloMessage /> );


尝试一下 »

React AJAX

React Refs

深入探索

React

搜索引擎

电话

脚本

软件库

Web 应用框架

jQuery

程序设计语言

程序设计

软件开发

1 篇笔记 写笔记

  1. 杨笑

    117***1030@qq.com

    51

    父组件和子组件都用表单:

    class HelloMessageChild extends React.Component { render(){ return <div> <input type="text" value={this.props.myDataProp} onChange={this.props.updateStateProp} /> <h4>子组件显示:{this.props.myDataProp}</h4> </div>; } } class HelloMessage extends React.Component { constructor(props) { super(props); this.state = {value: '父组件',value1:"子组件"}; this.handleChange = this.handleChange.bind(this); this.handleChange1 = this.handleChange1.bind(this); } handleChange(event) { this.setState({value: event.target.value}); } handleChange1(event) { this.setState({value1: event.target.value}); } render() { var value = this.state.value; var value1 = this.state.value1; return <div> <table><tbody> <tr> <td> <input type="text" value={value} onChange={this.handleChange} /> <h4>父组件显示:{value}</h4> </td> <td> <HelloMessageChild myDataProp = {value1} updateStateProp = {this.handleChange1} /> </td> </tr> </tbody></table> </div>; } } ReactDOM.render( <HelloMessage />, document.getElementById('formexmple') );h7.ylt6wgty.cn/Article/0107_4305.shtml h7.ylt6wgty.cn/Article/0107_1789.shtml h7.ylt6wgty.cn/Article/0107_9263.shtml h7.ylt6wgty.cn/Article/0107_3993.shtml h7.ylt6wgty.cn/Article/0107_8149.shtml h7.ylt6wgty.cn/Article/0107_1012.shtml h7.ylt6wgty.cn/Article/0107_7928.shtml h7.ylt6wgty.cn/Article/0107_8921.shtml h7.ylt6wgty.cn/Article/0107_4093.shtml h7.ylt6wgty.cn/Article/0107_1395.shtml h7.ylt6wgty.cn/Article/0107_1735.shtml h7.ylt6wgty.cn/Article/0107_1745.shtml h7.ylt6wgty.cn/Article/0107_8725.shtml h7.ylt6wgty.cn/Article/0107_5502.shtml h7.ylt6wgty.cn/Article/0107_7420.shtml h7.ylt6wgty.cn/Article/0107_4645.shtml h7.ylt6wgty.cn/Article/0107_8117.shtml h7.ylt6wgty.cn/Article/0107_7356.shtml h7.ylt6wgty.cn/Article/0107_4991.shtml h7.ylt6wgty.cn/Article/0107_8308.shtml h7.ylt6wgty.cn/Article/0107_2365.shtml h7.ylt6wgty.cn/Article/0107_0691.shtml h7.ylt6wgty.cn/Article/0107_1777.shtml h7.ylt6wgty.cn/Article/0107_3323.shtml h7.ylt6wgty.cn/Article/0107_4366.shtml h7.ylt6wgty.cn/Article/0107_8721.shtml h7.ylt6wgty.cn/Article/0107_5534.shtml h7.ylt6wgty.cn/Article/0107_2535.shtml h7.ylt6wgty.cn/Article/0107_7739.shtml h7.ylt6wgty.cn/Article/0107_8807.shtml h7.ylt6wgty.cn/Article/0107_7067.shtml h7.ylt6wgty.cn/Article/0107_9555.shtml h7.ylt6wgty.cn/Article/0107_9817.shtml h7.ylt6wgty.cn/Article/0107_2408.shtml h7.ylt6wgty.cn/Article/0107_4152.shtml h7.ylt6wgty.cn/Article/0107_0183.shtml h7.ylt6wgty.cn/Article/0107_9292.shtml h7.ylt6wgty.cn/Article/0107_0342.shtml h7.ylt6wgty.cn/Article/0107_5460.shtml h7.ylt6wgty.cn/Article/0107_9389.shtml h7.ylt6wgty.cn/Article/0107_8620.shtml h7.ylt6wgty.cn/Article/0107_0899.shtml h7.ylt6wgty.cn/Article/0107_3564.shtml h7.ylt6wgty.cn/Article/0107_7991.shtml h7.ylt6wgty.cn/Article/0107_5582.shtml h7.ylt6wgty.cn/Article/0107_2130.shtml h7.ylt6wgty.cn/Article/0107_0953.shtml h7.ylt6wgty.cn/Article/0107_7004.shtml h7.ylt6wgty.cn/Article/0107_8283.shtml h7.ylt6wgty.cn/Article/0107_5099.shtml h7.ylt6wgty.cn/Article/0107_1398.shtml h7.ylt6wgty.cn/Article/0107_5537.shtml h7.ylt6wgty.cn/Article/0107_0639.shtml h7.ylt6wgty.cn/Article/0107_6287.shtml h7.ylt6wgty.cn/Article/0107_0503.shtml h7.ylt6wgty.cn/Article/0107_3260.shtml h7.ylt6wgty.cn/Article/0107_8106.shtml h7.ylt6wgty.cn/Article/0107_9590.shtml h7.ylt6wgty.cn/Article/0107_5832.shtml h7.ylt6wgty.cn/Article/0107_5579.shtml h7.ylt6wgty.cn/Article/0107_3626.shtml h7.ylt6wgty.cn/Article/0107_7375.shtml h7.ylt6wgty.cn/Article/0107_2134.shtml h7.ylt6wgty.cn/Article/0107_1405.shtml h7.ylt6wgty.cn/Article/0107_5899.shtml h7.ylt6wgty.cn/Article/0107_5149.shtml h7.ylt6wgty.cn/Article/0107_5474.shtml h7.ylt6wgty.cn/Article/0107_9074.shtml h7.ylt6wgty.cn/Article/0107_8782.shtml h7.ylt6wgty.cn/Article/0107_4209.shtml h7.ylt6wgty.cn/Article/0107_2881.shtml h7.ylt6wgty.cn/Article/0107_0529.shtml h7.ylt6wgty.cn/Article/0107_6808.shtml h7.ylt6wgty.cn/Article/0107_0622.shtml h7.ylt6wgty.cn/Article/0107_6672.shtml h7.ylt6wgty.cn/Article/0107_9936.shtml h7.ylt6wgty.cn/Article/0107_3675.shtml h7.ylt6wgty.cn/Article/0107_0925.shtml h7.ylt6wgty.cn/Article/0107_8033.shtml h7.ylt6wgty.cn/Article/0107_3919.shtml h7.ylt6wgty.cn/Article/0107_6970.shtml h7.ylt6wgty.cn/Article/0107_0960.shtml h7.ylt6wgty.cn/Article/0107_6169.shtml h7.ylt6wgty.cn/Article/0107_1090.shtml h7.ylt6wgty.cn/Article/0107_1204.shtml h7.ylt6wgty.cn/Article/0107_8520.shtml h7.ylt6wgty.cn/Article/0107_1165.shtml h7.ylt6wgty.cn/Article/0107_9862.shtml h7.ylt6wgty.cn/Article/0107_7119.shtml h7.ylt6wgty.cn/Article/0107_0336.shtml h7.ylt6wgty.cn/Article/0107_3834.shtml h7.ylt6wgty.cn/Article/0107_4955.shtml h7.ylt6wgty.cn/Article/0107_4171.shtml h7.ylt6wgty.cn/Article/0107_4030.shtml h7.ylt6wgty.cn/Article/0107_5767.shtml h7.ylt6wgty.cn/Article/0107_1653.shtml h7.ylt6wgty.cn/Article/0107_6021.shtml h7.ylt6wgty.cn/Article/0107_2956.shtml h7.ylt6wgty.cn/Article/0107_0878.shtml h7.ylt6wgty.cn/Article/0107_1313.shtml h7.ylt6wgty.cn/Article/0107_6283.shtml h7.ylt6wgty.cn/Article/0107_5835.shtml h7.ylt6wgty.cn/Article/0107_0625.shtml h7.ylt6wgty.cn/Article/0107_2153.shtml h7.ylt6wgty.cn/Article/0107_1773.shtml h7.ylt6wgty.cn/Article/0107_2484.shtml h7.ylt6wgty.cn/Article/0107_6651.shtml h7.ylt6wgty.cn/Article/0107_9270.shtml h7.ylt6wgty.cn/Article/0107_1067.shtml h7.ylt6wgty.cn/Article/0107_3580.shtml h7.ylt6wgty.cn/Article/0107_2599.shtml h7.ylt6wgty.cn/Article/0107_9849.shtml h7.ylt6wgty.cn/Article/0107_5439.shtml h7.ylt6wgty.cn/Article/0107_0351.shtml h7.ylt6wgty.cn/Article/0107_4055.shtml h7.ylt6wgty.cn/Article/0107_2323.shtml h7.ylt6wgty.cn/Article/0107_4796.shtml h7.ylt6wgty.cn/Article/0107_5764.shtml h7.ylt6wgty.cn/Article/0107_6390.shtml h7.ylt6wgty.cn/Article/0107_8003.shtml h7.ylt6wgty.cn/Article/0107_0326.shtml h7.ylt6wgty.cn/Article/0107_3919.shtml h7.ylt6wgty.cn/Article/0107_3319.shtml h7.ylt6wgty.cn/Article/0107_1742.shtml h7.ylt6wgty.cn/Article/0107_4047.shtml h7.ylt6wgty.cn/Article/0107_2022.shtml h7.ylt6wgty.cn/Article/0107_8871.shtml h7.ylt6wgty.cn/Article/0107_9490.shtml h7.ylt6wgty.cn/Article/0107_7226.shtml h7.ylt6wgty.cn/Article/0107_1196.shtml h7.ylt6wgty.cn/Article/0107_5520.shtml h7.ylt6wgty.cn/Article/0107_4707.shtml h7.ylt6wgty.cn/Article/0107_3978.shtml h7.ylt6wgty.cn/Article/0107_1782.shtml h7.ylt6wgty.cn/Article/0107_1778.shtml h7.ylt6wgty.cn/Article/0107_1739.shtml h7.ylt6wgty.cn/Article/0107_9100.shtml h7.ylt6wgty.cn/Article/0107_0818.shtml h7.ylt6wgty.cn/Article/0107_8065.shtml h7.ylt6wgty.cn/Article/0107_3225.shtml h7.ylt6wgty.cn/Article/0107_6104.shtml h7.ylt6wgty.cn/Article/0107_0911.shtml h7.ylt6wgty.cn/Article/0107_5812.shtml h7.ylt6wgty.cn/Article/0107_0913.shtml h7.ylt6wgty.cn/Article/0107_2344.shtml h7.ylt6wgty.cn/Article/0107_9985.shtml h7.ylt6wgty.cn/Article/0107_8045.shtml h7.ylt6wgty.cn/Article/0107_5447.shtml h7.ylt6wgty.cn/Article/0107_3878.shtml h7.ylt6wgty.cn/Article/0107_0362.shtml h7.ylt6wgty.cn/Article/0107_2812.shtml h7.ylt6wgty.cn/Article/0107_6780.shtml h7.ylt6wgty.cn/Article/0107_6277.shtml h7.ylt6wgty.cn/Article/0107_8377.shtml h7.ylt6wgty.cn/Article/0107_6510.shtml h7.ylt6wgty.cn/Article/0107_7580.shtml h7.ylt6wgty.cn/Article/0107_2731.shtml h7.ylt6wgty.cn/Article/0107_0174.shtml h7.ylt6wgty.cn/Article/0107_4007.shtml h7.ylt6wgty.cn/Article/0107_4324.shtml h7.ylt6wgty.cn/Article/0107_3621.shtml h7.ylt6wgty.cn/Article/0107_3175.shtml h7.ylt6wgty.cn/Article/0107_6819.shtml h7.ylt6wgty.cn/Article/0107_0591.shtml h7.ylt6wgty.cn/Article/0107_0993.shtml h7.ylt6wgty.cn/Article/0107_9948.shtml h7.ylt6wgty.cn/Article/0107_0353.shtml h7.ylt6wgty.cn/Article/0107_6507.shtml h7.ylt6wgty.cn/Article/0107_9263.shtml h7.ylt6wgty.cn/Article/0107_2277.shtml h7.ylt6wgty.cn/Article/0107_1123.shtml h7.ylt6wgty.cn/Article/0107_6544.shtml h7.ylt6wgty.cn/Article/0107_0000.shtml h7.ylt6wgty.cn/Article/0107_5637.shtml h7.ylt6wgty.cn/Article/0107_0312.shtml h7.ylt6wgty.cn/Article/0107_9212.shtml h7.ylt6wgty.cn/Article/0107_9393.shtml h7.ylt6wgty.cn/Article/0107_4389.shtml h7.ylt6wgty.cn/Article/0107_5842.shtml h7.ylt6wgty.cn/Article/0107_9446.shtml h7.ylt6wgty.cn/Article/0107_3875.shtml h7.ylt6wgty.cn/Article/0107_4465.shtml h7.ylt6wgty.cn/Article/0107_0914.shtml h7.ylt6wgty.cn/Article/0107_9264.shtml h7.ylt6wgty.cn/Article/0107_2126.shtml h7.ylt6wgty.cn/Article/0107_2537.shtml h7.ylt6wgty.cn/Article/0107_6523.shtml h7.ylt6wgty.cn/Article/0107_1741.shtml h7.ylt6wgty.cn/Article/0107_3245.shtml h7.ylt6wgty.cn/Article/0107_2544.shtml h7.ylt6wgty.cn/Article/0107_7957.shtml h7.ylt6wgty.cn/Article/0107_4669.shtml h7.ylt6wgty.cn/Article/0107_0488.shtml h7.ylt6wgty.cn/Article/0107_1019.shtml h7.ylt6wgty.cn/Article/0107_8780.shtml h7.ylt6wgty.cn/Article/0107_4395.shtml h7.ylt6wgty.cn/Article/0107_5466.shtml h7.ylt6wgty.cn/Article/0107_5403.shtml h7.ylt6wgty.cn/Article/0107_6891.shtml h7.ylt6wgty.cn/Article/0107_4367.shtml h7.ylt6wgty.cn/Article/0107_6287.shtml h7.ylt6wgty.cn/Article/0107_4314.shtml h7.ylt6wgty.cn/Article/0107_5056.shtml h7.ylt6wgty.cn/Article/0107_4929.shtml h7.ylt6wgty.cn/Article/0107_3636.shtml h7.ylt6wgty.cn/Article/0107_8192.shtml h7.ylt6wgty.cn/Article/0107_2501.shtml h7.ylt6wgty.cn/Article/0107_0620.shtml h7.ylt6wgty.cn/Article/0107_5749.shtml h7.ylt6wgty.cn/Article/0107_2060.shtml h7.ylt6wgty.cn/Article/0107_1521.shtml h7.ylt6wgty.cn/Article/0107_0636.shtml h7.ylt6wgty.cn/Article/0107_3289.shtml h7.ylt6wgty.cn/Article/0107_3061.shtml h7.ylt6wgty.cn/Article/0107_0369.shtml h7.ylt6wgty.cn/Article/0107_2881.shtml h7.ylt6wgty.cn/Article/0107_6278.shtml h7.ylt6wgty.cn/Article/0107_3165.shtml h7.ylt6wgty.cn/Article/0107_4078.shtml h7.ylt6wgty.cn/Article/0107_2510.shtml h7.ylt6wgty.cn/Article/0107_1051.shtml h7.ylt6wgty.cn/Article/0107_1106.shtml h7.ylt6wgty.cn/Article/0107_1771.shtml h7.ylt6wgty.cn/Article/0107_7533.shtml h7.ylt6wgty.cn/Article/0107_5505.shtml h7.ylt6wgty.cn/Article/0107_9470.shtml h7.ylt6wgty.cn/Article/0107_4014.shtml h7.ylt6wgty.cn/Article/0107_5845.shtml h7.ylt6wgty.cn/Article/0107_5714.shtml h7.ylt6wgty.cn/Article/0107_5072.shtml h7.ylt6wgty.cn/Article/0107_4545.shtml h7.ylt6wgty.cn/Article/0107_1116.shtml h7.ylt6wgty.cn/Article/0107_1766.shtml h7.ylt6wgty.cn/Article/0107_7339.shtml h7.ylt6wgty.cn/Article/0107_5377.shtml h7.ylt6wgty.cn/Article/0107_1417.shtml h7.ylt6wgty.cn/Article/0107_2685.shtml h7.ylt6wgty.cn/Article/0107_5206.shtml h7.ylt6wgty.cn/Article/0107_6406.shtml h7.ylt6wgty.cn/Article/0107_6549.shtml h7.ylt6wgty.cn/Article/0107_0833.shtml h7.ylt6wgty.cn/Article/0107_4699.shtml h7.ylt6wgty.cn/Article/0107_3542.shtml h7.ylt6wgty.cn/Article/0107_7587.shtml h7.ylt6wgty.cn/Article/0107_1064.shtml h7.ylt6wgty.cn/Article/0107_5528.shtml h7.ylt6wgty.cn/Article/0107_2283.shtml h7.ylt6wgty.cn/Article/0107_5022.shtml h7.ylt6wgty.cn/Article/0107_7622.shtml h7.ylt6wgty.cn/Article/0107_9568.shtml h7.ylt6wgty.cn/Article/0107_9142.shtml h7.ylt6wgty.cn/Article/0107_3028.shtml h7.ylt6wgty.cn/Article/0107_6907.shtml h7.ylt6wgty.cn/Article/0107_0311.shtml h7.ylt6wgty.cn/Article/0107_2542.shtml h7.ylt6wgty.cn/Article/0107_6920.shtml h7.ylt6wgty.cn/Article/0107_4721.shtml h7.ylt6wgty.cn/Article/0107_8667.shtml h7.ylt6wgty.cn/Article/0107_4848.shtml h7.ylt6wgty.cn/Article/0107_9656.shtml h7.ylt6wgty.cn/Article/0107_5126.shtml h7.ylt6wgty.cn/Article/0107_7292.shtml h7.ylt6wgty.cn/Article/0107_8130.shtml h7.ylt6wgty.cn/Article/0107_2514.shtml h7.ylt6wgty.cn/Article/0107_8472.shtml h7.ylt6wgty.cn/Article/0107_2419.shtml h7.ylt6wgty.cn/Article/0107_2503.shtml h7.ylt6wgty.cn/Article/0107_3970.shtml h7.ylt6wgty.cn/Article/0107_3140.shtml h7.ylt6wgty.cn/Article/0107_4048.shtml h7.ylt6wgty.cn/Article/0107_9663.shtml h7.ylt6wgty.cn/Article/0107_5419.shtml h7.ylt6wgty.cn/Article/0107_7512.shtml h7.ylt6wgty.cn/Article/0107_4055.shtml h7.ylt6wgty.cn/Article/0107_5645.shtml h7.ylt6wgty.cn/Article/0107_2113.shtml h7.ylt6wgty.cn/Article/0107_4350.shtml h7.ylt6wgty.cn/Article/0107_2897.shtml h7.ylt6wgty.cn/Article/0107_6146.shtml h7.ylt6wgty.cn/Article/0107_1427.shtml h7.ylt6wgty.cn/Article/0107_8667.shtml h7.ylt6wgty.cn/Article/0107_8346.shtml h7.ylt6wgty.cn/Article/0107_2012.shtml h7.ylt6wgty.cn/Article/0107_3626.shtml h7.ylt6wgty.cn/Article/0107_4740.shtml h7.ylt6wgty.cn/Article/0107_2947.shtml h7.ylt6wgty.cn/Article/0107_9412.shtml h7.ylt6wgty.cn/Article/0107_6760.shtml h7.ylt6wgty.cn/Article/0107_0951.shtml h7.ylt6wgty.cn/Article/0107_9726.shtml h7.ylt6wgty.cn/Article/0107_3607.shtml h7.ylt6wgty.cn/Article/0107_2174.shtml h7.ylt6wgty.cn/Article/0107_2406.shtml h7.ylt6wgty.cn/Article/0107_8822.shtml h7.ylt6wgty.cn/Article/0107_8889.shtml h7.ylt6wgty.cn/Article/0107_3922.shtml h7.ylt6wgty.cn/Article/0107_2507.shtml h7.ylt6wgty.cn/Article/0107_3236.shtml h7.ylt6wgty.cn/Article/0107_5469.shtml h7.ylt6wgty.cn/Article/0107_2888.shtml h7.ylt6wgty.cn/Article/0107_5536.shtml h7.ylt6wgty.cn/Article/0107_0258.shtml h7.ylt6wgty.cn/Article/0107_1063.shtml h7.ylt6wgty.cn/Article/0107_4062.shtml h7.ylt6wgty.cn/Article/0107_0101.shtml h7.ylt6wgty.cn/Article/0107_7959.shtml h7.ylt6wgty.cn/Article/0107_0665.shtml h7.ylt6wgty.cn/Article/0107_2219.shtml h7.ylt6wgty.cn/Article/0107_4490.shtml h7.ylt6wgty.cn/Article/0107_8727.shtml h7.ylt6wgty.cn/Article/0107_2238.shtml h7.ylt6wgty.cn/Article/0107_6586.shtml h7.ylt6wgty.cn/Article/0107_6901.shtml h7.ylt6wgty.cn/Article/0107_9849.shtml h7.ylt6wgty.cn/Article/0107_7307.shtml h7.ylt6wgty.cn/Article/0107_8135.shtml h7.ylt6wgty.cn/Article/0107_0369.shtml h7.ylt6wgty.cn/Article/0107_7918.shtml h7.ylt6wgty.cn/Article/0107_6403.shtml h7.ylt6wgty.cn/Article/0107_5058.shtml h7.ylt6wgty.cn/Article/0107_8483.shtml h7.ylt6wgty.cn/Article/0107_4914.shtml h7.ylt6wgty.cn/Article/0107_2804.shtml h7.ylt6wgty.cn/Article/0107_1514.shtml h7.ylt6wgty.cn/Article/0107_6965.shtml h7.ylt6wgty.cn/Article/0107_8807.shtml h7.ylt6wgty.cn/Article/0107_3645.shtml h7.ylt6wgty.cn/Article/0107_2112.shtml h7.ylt6wgty.cn/Article/0107_1406.shtml h7.ylt6wgty.cn/Article/0107_9294.shtml h7.ylt6wgty.cn/Article/0107_1624.shtml h7.ylt6wgty.cn/Article/0107_8467.shtml h7.ylt6wgty.cn/Article/0107_9782.shtml h7.ylt6wgty.cn/Article/0107_1356.shtml h7.ylt6wgty.cn/Article/0107_2847.shtml h7.ylt6wgty.cn/Article/0107_7674.shtml h7.ylt6wgty.cn/Article/0107_1166.shtml h7.ylt6wgty.cn/Article/0107_2468.shtml h7.ylt6wgty.cn/Article/0107_2211.shtml h7.ylt6wgty.cn/Article/0107_9153.shtml h7.ylt6wgty.cn/Article/0107_2248.shtml h7.ylt6wgty.cn/Article/0107_1443.shtml h7.ylt6wgty.cn/Article/0107_8623.shtml h7.ylt6wgty.cn/Article/0107_7771.shtml h7.ylt6wgty.cn/Article/0107_3397.shtml h7.ylt6wgty.cn/Article/0107_6231.shtml h7.ylt6wgty.cn/Article/0107_9727.shtml h7.ylt6wgty.cn/Article/0107_2734.shtml h7.ylt6wgty.cn/Article/0107_8790.shtml h7.ylt6wgty.cn/Article/0107_9845.shtml h7.ylt6wgty.cn/Article/0107_3958.shtml h7.ylt6wgty.cn/Article/0107_7392.shtml h7.ylt6wgty.cn/Article/0107_1872.shtml h7.ylt6wgty.cn/Article/0107_4734.shtml h7.ylt6wgty.cn/Article/0107_8552.shtml h7.ylt6wgty.cn/Article/0107_9109.shtml h7.ylt6wgty.cn/Article/0107_6615.shtml h7.ylt6wgty.cn/Article/0107_5272.shtml h7.ylt6wgty.cn/Article/0107_3068.shtml h7.ylt6wgty.cn/Article/0107_7169.shtml h7.ylt6wgty.cn/Article/0107_4912.shtml h7.ylt6wgty.cn/Article/0107_8228.shtml h7.ylt6wgty.cn/Article/0107_8395.shtml h7.ylt6wgty.cn/Article/0107_4342.shtml h7.ylt6wgty.cn/Article/0107_3923.shtml h7.ylt6wgty.cn/Article/0107_3371.shtml h7.ylt6wgty.cn/Article/0107_7192.shtml h7.ylt6wgty.cn/Article/0107_0488.shtml h7.ylt6wgty.cn/Article/0107_6604.shtml h7.ylt6wgty.cn/Article/0107_2103.shtml h7.ylt6wgty.cn/Article/0107_8444.shtml h7.ylt6wgty.cn/Article/0107_6587.shtml h7.ylt6wgty.cn/Article/0107_3167.shtml h7.ylt6wgty.cn/Article/0107_3385.shtml h7.ylt6wgty.cn/Article/0107_5150.shtml h7.ylt6wgty.cn/Article/0107_2945.shtml h7.ylt6wgty.cn/Article/0107_8281.shtml h7.ylt6wgty.cn/Article/0107_8872.shtml h7.ylt6wgty.cn/Article/0107_1436.shtml h7.ylt6wgty.cn/Article/0107_7650.shtml h7.ylt6wgty.cn/Article/0107_5589.shtml h7.ylt6wgty.cn/Article/0107_3666.shtml h7.ylt6wgty.cn/Article/0107_5395.shtml h7.ylt6wgty.cn/Article/0107_5796.shtml h7.ylt6wgty.cn/Article/0107_5989.shtml h7.ylt6wgty.cn/Article/0107_0098.shtml h7.ylt6wgty.cn/Article/0107_3525.shtml h7.ylt6wgty.cn/Article/0107_3922.shtml h7.ylt6wgty.cn/Article/0107_9952.shtml h7.ylt6wgty.cn/Article/0107_9818.shtml h7.ylt6wgty.cn/Article/0107_9923.shtml h7.ylt6wgty.cn/Article/0107_0977.shtml h7.ylt6wgty.cn/Article/0107_7411.shtml h7.ylt6wgty.cn/Article/0107_8913.shtml h7.ylt6wgty.cn/Article/0107_9941.shtml h7.ylt6wgty.cn/Article/0107_0941.shtml h7.ylt6wgty.cn/Article/0107_4339.shtml h7.ylt6wgty.cn/Article/0107_7937.shtml h7.ylt6wgty.cn/Article/0107_4848.shtml h7.ylt6wgty.cn/Article/0107_7319.shtml h7.ylt6wgty.cn/Article/0107_2289.shtml h7.ylt6wgty.cn/Article/0107_3281.shtml h7.ylt6wgty.cn/Article/0107_5656.shtml h7.ylt6wgty.cn/Article/0107_4981.shtml h7.ylt6wgty.cn/Article/0107_9588.shtml h7.ylt6wgty.cn/Article/0107_9711.shtml h7.ylt6wgty.cn/Article/0107_0935.shtml h7.ylt6wgty.cn/Article/0107_3660.shtml h7.ylt6wgty.cn/Article/0107_2382.shtml h7.ylt6wgty.cn/Article/0107_2215.shtml h7.ylt6wgty.cn/Article/0107_3592.shtml h7.ylt6wgty.cn/Article/0107_1246.shtml h7.ylt6wgty.cn/Article/0107_4382.shtml h7.ylt6wgty.cn/Article/0107_4076.shtml h7.ylt6wgty.cn/Article/0107_3607.shtml h7.ylt6wgty.cn/Article/0107_9585.shtml h7.ylt6wgty.cn/Article/0107_9025.shtml h7.ylt6wgty.cn/Article/0107_9479.shtml h7.ylt6wgty.cn/Article/0107_5503.shtml h7.ylt6wgty.cn/Article/0107_0250.shtml h7.ylt6wgty.cn/Article/0107_8753.shtml h7.ylt6wgty.cn/Article/0107_8083.shtml h7.ylt6wgty.cn/Article/0107_3537.shtml h7.ylt6wgty.cn/Article/0107_7007.shtml h7.ylt6wgty.cn/Article/0107_4074.shtml h7.ylt6wgty.cn/Article/0107_2767.shtml h7.ylt6wgty.cn/Article/0107_0957.shtml h7.ylt6wgty.cn/Article/0107_3336.shtml h7.ylt6wgty.cn/Article/0107_3135.shtml h7.ylt6wgty.cn/Article/0107_5667.shtml h7.ylt6wgty.cn/Article/0107_0083.shtml h7.ylt6wgty.cn/Article/0107_8220.shtml h7.ylt6wgty.cn/Article/0107_0982.shtml h7.ylt6wgty.cn/Article/0107_6867.shtml h7.ylt6wgty.cn/Article/0107_1421.shtml h7.ylt6wgty.cn/Article/0107_9162.shtml h7.ylt6wgty.cn/Article/0107_5476.shtml h7.ylt6wgty.cn/Article/0107_0144.shtml h7.ylt6wgty.cn/Article/0107_4600.shtml h7.ylt6wgty.cn/Article/0107_1110.shtml h7.ylt6wgty.cn/Article/0107_4595.shtml h7.ylt6wgty.cn/Article/0107_7335.shtml h7.ylt6wgty.cn/Article/0107_3948.shtml h7.ylt6wgty.cn/Article/0107_6529.shtml h7.ylt6wgty.cn/Article/0107_4628.shtml h7.ylt6wgty.cn/Article/0107_4688.shtml h7.ylt6wgty.cn/Article/0107_8762.shtml h7.ylt6wgty.cn/Article/0107_3512.shtml h7.ylt6wgty.cn/Article/0107_6606.shtml h7.ylt6wgty.cn/Article/0107_3225.shtml h7.ylt6wgty.cn/Article/0107_8074.shtml h7.ylt6wgty.cn/Article/0107_1626.shtml h7.ylt6wgty.cn/Article/0107_0556.shtml h7.ylt6wgty.cn/Article/0107_0706.shtml h7.ylt6wgty.cn/Article/0107_5596.shtml h7.ylt6wgty.cn/Article/0107_1015.shtml h7.ylt6wgty.cn/Article/0107_3659.shtml h7.ylt6wgty.cn/Article/0107_1871.shtml h7.ylt6wgty.cn/Article/0107_0200.shtml h7.ylt6wgty.cn/Article/0107_6505.shtml h7.ylt6wgty.cn/Article/0107_9567.shtml h7.ylt6wgty.cn/Article/0107_7244.shtml h7.ylt6wgty.cn/Article/0107_7845.shtml h7.ylt6wgty.cn/Article/0107_0963.shtml h7.ylt6wgty.cn/Article/0107_0237.shtml h7.ylt6wgty.cn/Article/0107_3924.shtml h7.ylt6wgty.cn/Article/0107_0637.shtml h7.ylt6wgty.cn/Article/0107_5196.shtml h7.ylt6wgty.cn/Article/0107_1442.shtml h7.ylt6wgty.cn/Article/0107_8436.shtml h7.ylt6wgty.cn/Article/0107_9922.shtml h7.ylt6wgty.cn/Article/0107_0516.shtml h7.ylt6wgty.cn/Article/0107_2928.shtml h7.ylt6wgty.cn/Article/0107_5819.shtml h7.ylt6wgty.cn/Article/0107_6068.shtml h7.ylt6wgty.cn/Article/0107_8440.shtml h7.ylt6wgty.cn/Article/0107_2448.shtml h7.ylt6wgty.cn/Article/0107_1046.shtml h7.ylt6wgty.cn/Article/0107_0397.shtml h7.ylt6wgty.cn/Article/0107_2266.shtml h7.ylt6wgty.cn/Article/0107_6877.shtml h7.ylt6wgty.cn/Article/0107_0082.shtml h7.ylt6wgty.cn/Article/0107_0449.shtml h7.ylt6wgty.cn/Article/0107_6318.shtml h7.ylt6wgty.cn/Article/0107_5751.shtml h7.ylt6wgty.cn/Article/0107_1213.shtml h7.ylt6wgty.cn/Article/0107_0683.shtml h7.ylt6wgty.cn/Article/0107_2848.shtml h7.ylt6wgty.cn/Article/0107_0174.shtml h7.ylt6wgty.cn/Article/0107_2065.shtml h7.ylt6wgty.cn/Article/0107_8948.shtml h7.ylt6wgty.cn/Article/0107_4622.shtml h7.ylt6wgty.cn/Article/0107_9252.shtml h7.ylt6wgty.cn/Article/0107_3961.shtml h7.ylt6wgty.cn/Article/0107_3211.shtml h7.ylt6wgty.cn/Article/0107_2177.shtml h7.ylt6wgty.cn/Article/0107_4435.shtml h7.ylt6wgty.cn/Article/0107_5293.shtml h7.ylt6wgty.cn/Article/0107_6947.shtml h7.ylt6wgty.cn/Article/0107_5526.shtml

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/1125767.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

白箱、黑箱到灰箱,神经科学迎来新物种:不再复刻大脑,而是成为大脑的AI代言人

来源&#xff1a;集智俱乐部传统神经科学依赖机制假设构建模型&#xff0c;而人工智能正在引入一种新的研究对象——代理脑&#xff08;surrogate brain&#xff09;&#xff1a;一种可从数据中学习、可预测、可操纵的个体化全脑动力学系统。与经典生物物理模型不同&#xff0c…

吐血推荐专科生必用TOP10 AI论文软件

吐血推荐专科生必用TOP10 AI论文软件 推荐2&#xff1a;「Grammarly」&#xff08;学术版&#xff09;——英文论文润色标杆&#xff08;推荐指数&#xff1a;★★★★☆&#xff09; 对于有SCI、EI投稿需求的用户&#xff0c;Grammarly&#xff08;学术版&#xff09;是不可替…

本章节我们将讨论如何React 表单与事件

React 表单与事件 本章节我们将讨论如何在 React 中使用表单。 HTML 表单元素与 React 中的其他 DOM 元素有所不同,因为表单元素生来就保留一些内部状态。 在 HTML 当中&#xff0c;像 <input>, <textarea>, 和 <select> 这类表单元素会维持自身状态&…

本章节我们将讨论如何React 表单与事件

React 表单与事件 本章节我们将讨论如何在 React 中使用表单。 HTML 表单元素与 React 中的其他 DOM 元素有所不同,因为表单元素生来就保留一些内部状态。 在 HTML 当中&#xff0c;像 <input>, <textarea>, 和 <select> 这类表单元素会维持自身状态&…

Nordic方案——无线射频模组AS01-ML01SC

Nordic Semiconductor在无线性能和精密度方面拥有领先业界的表现&#xff0c;即使是对成本极为敏感的消费类产品&#xff0c;也能运用该公司的超低功耗 (ULP) 无线芯片。Nordic Semiconductor的芯片广泛用于无线PC外设、游戏控制器、体育和健身传感器、玩具、先进的多媒体控制器…

GEO服务/运营商推荐!2026 GEO 优化实用指南:如何选对服务商让 AI 精准推广品牌

随着 QuestMobile 2025 年调研数据显示 AI 搜索引擎月活用户已达 6.85 亿&#xff0c;40 岁以下高学历群体占比超 74%&#xff0c;“让 AI 推广我的品牌” 成为企业数字化营销的核心诉求。而 GEO&#xff08;生成式引擎优化&#xff09;作为抢占 AI 搜索流量的关键技术&#xf…

别再用手机自带天气了

天气应用的技术革命&#xff1a;从数据接收到智能预警的全链路解密当我第一次打开 Mercury Weather 3.0 的飓风追踪界面时&#xff0c;眼前出现的不仅仅是简单的气象图标&#xff0c;而是一个完整的气象数据可视化系统。这让我不禁思考&#xff1a;在看似简单的天气应用背后&am…

Python斐波那契数列代码示例

生成代码示例以下是一个Python代码示例&#xff0c;用于计算斐波那契数列的前n项&#xff1a;def fibonacci(n):fib_sequence []a, b 0, 1for _ in range(n):fib_sequence.append(a)a, b b, a breturn fib_sequencen int(input("请输入要计算的斐波那契数列项数: &qu…

Python斐波那契数列代码示例

生成代码示例以下是一个Python代码示例&#xff0c;用于计算斐波那契数列的前n项&#xff1a;def fibonacci(n):fib_sequence []a, b 0, 1for _ in range(n):fib_sequence.append(a)a, b b, a breturn fib_sequencen int(input("请输入要计算的斐波那契数列项数: &qu…

喜报 | 和鲸智学智研一体机入选《2025 爱分析 · Agent 厂商全景报告》

高校AI教育和能力建设普遍面临三重挑战&#xff1a;学生&#xff0c;尤其是无编程基础者困于技术门槛&#xff0c;难以专注探索和创新&#xff1b;拼凑式采购导致运维成本高、软硬件供应商权责不清&#xff1b;算力资源分散孤立&#xff0c;制约校级协同与长远布局。 在此情境下…

Mac隐藏效率神器

每当深夜敲代码时&#xff0c;我最怕的不是bug难解&#xff0c;而是思路被突如其来的操作打断。想象这样一个场景&#xff1a;你在IDE里调试得正投入&#xff0c;突然需要执行一个本地测试脚本。本能反应是切到终端、定位目录、输入命令——这一套操作下来&#xff0c;刚才清晰…

Python实现斐波那契数列计算

Python 代码示例&#xff1a;计算斐波那契数列def fibonacci(n):"""计算斐波那契数列的第n项:param n: 正整数:return: 第n项的值"""if n < 0:return "输入必须为正整数"elif n 1:return 0elif n 2:return 1else:a, b 0, 1for _…

优质正版素材平台实战指南:四大资源库深度解析

在数字创作领域&#xff0c;优质素材是作品成功的基石&#xff0c;而正版授权则是专业创作的底线。面对市场上众多的素材平台&#xff0c;如何根据项目需求精准选择&#xff1f;本文将深入解析四个具有代表性的正版素材平台——国内领先的制片帮与国际知名的Shutterstock、Pond…

智能体推理范式: ReAct(Reasoning Acting)

什么是 ReAct ReAct Reasoning&#xff08;推理&#xff09; Acting&#xff08;行动&#xff09; 这是一种让大语言模型能够交替进行推理和行动的架构模式&#xff0c;通过与外部工具交互来解决复杂问题。 人类类比 想象你在做饭&#xff1a;这就是 ReAct 的本质&#xff1a;…

全网最全研究生AI论文工具TOP10测评

全网最全研究生AI论文工具TOP10测评 推荐2&#xff1a;「Grammarly」&#xff08;学术版&#xff09;——英文论文润色标杆&#xff08;推荐指数&#xff1a;★★★★☆&#xff09; 对于有SCI、EI投稿需求的用户&#xff0c;Grammarly&#xff08;学术版&#xff09;是不可替代…

Python代码示例:快速筛选偶数并求均值

请提供具体的编程语言和代码功能要求&#xff0c;以便生成符合需求的代码示例。例如&#xff1a;编程语言&#xff1a;Python代码要求&#xff1a;实现快速排序算法或编程语言&#xff1a;JavaScript代码要求&#xff1a;从API获取数据并解析JSON提供详细信息后&#xff0c;将生…

商联达AI智能体:零售业从经验到数据的革命

在数字经济浪潮的席卷下&#xff0c;零售业正经历一场从“经验驱动”到“数据驱动”的深刻变革。在这场变革中&#xff0c;商联达AI智能体凭借其独特的“感知-决策-执行-学习”闭环能力&#xff0c;通过多源数据融合分析与行业场景深度适配&#xff0c;为零售企业构建了从需求洞…

企业选型智能体的五大核心维度:以商联达为例的实战指南

在数字化转型浪潮中&#xff0c;AI智能体已成为企业提升竞争力的"秘密武器"。面对市场上琳琅满目的解决方案&#xff0c;企业如何避免"踩坑"&#xff1f;本文以商联达为例&#xff0c;拆解AI选型的五大核心维度&#xff0c;助您找到最适合的智能伙伴。一、…

程序猿之开发工具Snipaste

Snipaste 是一款功能强大、轻量且免费的截图与贴图工具&#xff0c;其核心设计理念是通过“截图&#xff08;Snip&#xff09; 贴图&#xff08;Paste&#xff09;”来提升电脑用户的工作效率。它不仅仅是一个截图工具&#xff0c;更是一个能将截取或复制的图片、文字、颜色等信…

30秒掌握Python快速排序

为了生成符合要求的代码&#xff0c;需要明确以下信息&#xff1a;编程语言请指定具体的编程语言&#xff08;如 Python、Java、JavaScript、C 等&#xff09;。代码功能请详细描述代码需要实现的功能或逻辑&#xff08;例如&#xff1a;计算斐波那契数列、排序数组、处理文件等…