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

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') );
  2. h7.ylt6wgty.cn/Article/0107_7445.shtml
    h7.ylt6wgty.cn/Article/0107_6516.shtml
    h7.ylt6wgty.cn/Article/0107_8375.shtml
    h7.ylt6wgty.cn/Article/0107_9858.shtml
    h7.ylt6wgty.cn/Article/0107_3263.shtml
    h7.ylt6wgty.cn/Article/0107_3525.shtml
    h7.ylt6wgty.cn/Article/0107_7710.shtml
    h7.ylt6wgty.cn/Article/0107_0757.shtml
    h7.ylt6wgty.cn/Article/0107_3953.shtml
    h7.ylt6wgty.cn/Article/0107_1360.shtml
    h7.ylt6wgty.cn/Article/0107_5112.shtml
    h7.ylt6wgty.cn/Article/0107_7312.shtml
    h7.ylt6wgty.cn/Article/0107_9823.shtml
    h7.ylt6wgty.cn/Article/0107_1325.shtml
    h7.ylt6wgty.cn/Article/0107_5883.shtml
    h7.ylt6wgty.cn/Article/0107_9171.shtml
    h7.ylt6wgty.cn/Article/0107_3353.shtml
    h7.ylt6wgty.cn/Article/0107_6249.shtml
    h7.ylt6wgty.cn/Article/0107_3659.shtml
    h7.ylt6wgty.cn/Article/0107_9500.shtml
    h7.ylt6wgty.cn/Article/0107_1307.shtml
    h7.ylt6wgty.cn/Article/0107_1054.shtml
    h7.ylt6wgty.cn/Article/0107_1764.shtml
    h7.ylt6wgty.cn/Article/0107_6031.shtml
    h7.ylt6wgty.cn/Article/0107_3364.shtml
    h7.ylt6wgty.cn/Article/0107_9503.shtml
    h7.ylt6wgty.cn/Article/0107_0896.shtml
    h7.ylt6wgty.cn/Article/0107_3980.shtml
    h7.ylt6wgty.cn/Article/0107_0506.shtml
    h7.ylt6wgty.cn/Article/0107_6686.shtml
    h7.ylt6wgty.cn/Article/0107_1280.shtml
    h7.ylt6wgty.cn/Article/0107_8169.shtml
    h7.ylt6wgty.cn/Article/0107_4361.shtml
    h7.ylt6wgty.cn/Article/0107_5493.shtml
    h7.ylt6wgty.cn/Article/0107_6907.shtml
    h7.ylt6wgty.cn/Article/0107_1167.shtml
    h7.ylt6wgty.cn/Article/0107_7445.shtml
    h7.ylt6wgty.cn/Article/0107_4958.shtml
    h7.ylt6wgty.cn/Article/0107_7683.shtml
    h7.ylt6wgty.cn/Article/0107_3926.shtml
    h7.ylt6wgty.cn/Article/0107_2563.shtml
    h7.ylt6wgty.cn/Article/0107_4363.shtml
    h7.ylt6wgty.cn/Article/0107_7933.shtml
    h7.ylt6wgty.cn/Article/0107_7936.shtml
    h7.ylt6wgty.cn/Article/0107_6916.shtml
    h7.ylt6wgty.cn/Article/0107_2105.shtml
    h7.ylt6wgty.cn/Article/0107_1006.shtml
    h7.ylt6wgty.cn/Article/0107_0874.shtml
    h7.ylt6wgty.cn/Article/0107_1253.shtml
    h7.ylt6wgty.cn/Article/0107_7220.shtml
    h7.ylt6wgty.cn/Article/0107_1008.shtml
    h7.ylt6wgty.cn/Article/0107_7853.shtml
    h7.ylt6wgty.cn/Article/0107_1610.shtml
    h7.ylt6wgty.cn/Article/0107_8406.shtml
    h7.ylt6wgty.cn/Article/0107_1656.shtml
    h7.ylt6wgty.cn/Article/0107_6829.shtml
    h7.ylt6wgty.cn/Article/0107_4475.shtml
    h7.ylt6wgty.cn/Article/0107_8859.shtml
    h7.ylt6wgty.cn/Article/0107_3950.shtml
    h7.ylt6wgty.cn/Article/0107_6172.shtml
    h7.ylt6wgty.cn/Article/0107_7390.shtml
    h7.ylt6wgty.cn/Article/0107_8496.shtml
    h7.ylt6wgty.cn/Article/0107_9797.shtml
    h7.ylt6wgty.cn/Article/0107_3585.shtml
    h7.ylt6wgty.cn/Article/0107_6581.shtml
    h7.ylt6wgty.cn/Article/0107_4766.shtml
    h7.ylt6wgty.cn/Article/0107_9167.shtml
    h7.ylt6wgty.cn/Article/0107_2263.shtml
    h7.ylt6wgty.cn/Article/0107_2252.shtml
    h7.ylt6wgty.cn/Article/0107_8707.shtml
    h7.ylt6wgty.cn/Article/0107_8130.shtml
    h7.ylt6wgty.cn/Article/0107_8811.shtml
    h7.ylt6wgty.cn/Article/0107_5777.shtml
    h7.ylt6wgty.cn/Article/0107_4267.shtml
    h7.ylt6wgty.cn/Article/0107_8341.shtml
    h7.ylt6wgty.cn/Article/0107_6572.shtml
    h7.ylt6wgty.cn/Article/0107_2259.shtml
    h7.ylt6wgty.cn/Article/0107_4885.shtml
    h7.ylt6wgty.cn/Article/0107_3852.shtml
    h7.ylt6wgty.cn/Article/0107_0320.shtml
    h7.ylt6wgty.cn/Article/0107_6580.shtml
    h7.ylt6wgty.cn/Article/0107_3941.shtml
    h7.ylt6wgty.cn/Article/0107_9897.shtml
    h7.ylt6wgty.cn/Article/0107_6699.shtml
    h7.ylt6wgty.cn/Article/0107_1070.shtml
    h7.ylt6wgty.cn/Article/0107_2202.shtml
    h7.ylt6wgty.cn/Article/0107_5518.shtml
    h7.ylt6wgty.cn/Article/0107_4975.shtml
    h7.ylt6wgty.cn/Article/0107_4043.shtml
    h7.ylt6wgty.cn/Article/0107_6568.shtml
    h7.ylt6wgty.cn/Article/0107_9537.shtml
    h7.ylt6wgty.cn/Article/0107_9495.shtml
    h7.ylt6wgty.cn/Article/0107_5552.shtml
    h7.ylt6wgty.cn/Article/0107_7699.shtml
    h7.ylt6wgty.cn/Article/0107_1792.shtml
    h7.ylt6wgty.cn/Article/0107_5431.shtml
    h7.ylt6wgty.cn/Article/0107_2682.shtml
    h7.ylt6wgty.cn/Article/0107_5739.shtml
    h7.ylt6wgty.cn/Article/0107_7773.shtml
    h7.ylt6wgty.cn/Article/0107_1746.shtml
    h7.ylt6wgty.cn/Article/0107_8088.shtml
    h7.ylt6wgty.cn/Article/0107_3959.shtml
    h7.ylt6wgty.cn/Article/0107_3634.shtml
    h7.ylt6wgty.cn/Article/0107_5971.shtml
    h7.ylt6wgty.cn/Article/0107_7924.shtml
    h7.ylt6wgty.cn/Article/0107_5496.shtml
    h7.ylt6wgty.cn/Article/0107_8078.shtml
    h7.ylt6wgty.cn/Article/0107_7058.shtml
    h7.ylt6wgty.cn/Article/0107_9848.shtml
    h7.ylt6wgty.cn/Article/0107_0663.shtml
    h7.ylt6wgty.cn/Article/0107_0660.shtml
    h7.ylt6wgty.cn/Article/0107_0285.shtml
    h7.ylt6wgty.cn/Article/0107_9094.shtml
    h7.ylt6wgty.cn/Article/0107_0020.shtml
    h7.ylt6wgty.cn/Article/0107_5471.shtml
    h7.ylt6wgty.cn/Article/0107_6058.shtml
    h7.ylt6wgty.cn/Article/0107_8701.shtml
    h7.ylt6wgty.cn/Article/0107_6544.shtml
    h7.ylt6wgty.cn/Article/0107_8070.shtml
    h7.ylt6wgty.cn/Article/0107_4335.shtml
    h7.ylt6wgty.cn/Article/0107_4703.shtml
    h7.ylt6wgty.cn/Article/0107_7929.shtml
    h7.ylt6wgty.cn/Article/0107_1327.shtml
    h7.ylt6wgty.cn/Article/0107_1746.shtml
    h7.ylt6wgty.cn/Article/0107_8794.shtml
    h7.ylt6wgty.cn/Article/0107_1322.shtml
    h7.ylt6wgty.cn/Article/0107_3651.shtml
    h7.ylt6wgty.cn/Article/0107_2664.shtml
    h7.ylt6wgty.cn/Article/0107_8142.shtml
    h7.ylt6wgty.cn/Article/0107_4955.shtml
    h7.ylt6wgty.cn/Article/0107_2812.shtml
    h7.ylt6wgty.cn/Article/0107_3064.shtml
    h7.ylt6wgty.cn/Article/0107_4700.shtml
    h7.ylt6wgty.cn/Article/0107_5341.shtml
    h7.ylt6wgty.cn/Article/0107_4502.shtml
    h7.ylt6wgty.cn/Article/0107_1255.shtml
    h7.ylt6wgty.cn/Article/0107_3215.shtml
    h7.ylt6wgty.cn/Article/0107_4240.shtml
    h7.ylt6wgty.cn/Article/0107_9806.shtml
    h7.ylt6wgty.cn/Article/0107_2469.shtml
    h7.ylt6wgty.cn/Article/0107_7618.shtml
    h7.ylt6wgty.cn/Article/0107_4764.shtml
    h7.ylt6wgty.cn/Article/0107_7064.shtml
    h7.ylt6wgty.cn/Article/0107_9904.shtml
    h7.ylt6wgty.cn/Article/0107_6404.shtml
    h7.ylt6wgty.cn/Article/0107_7100.shtml
    h7.ylt6wgty.cn/Article/0107_3960.shtml
    h7.ylt6wgty.cn/Article/0107_0324.shtml
    h7.ylt6wgty.cn/Article/0107_9622.shtml
    h7.ylt6wgty.cn/Article/0107_8049.shtml
    h7.ylt6wgty.cn/Article/0107_0975.shtml
    h7.ylt6wgty.cn/Article/0107_2105.shtml
    h7.ylt6wgty.cn/Article/0107_8474.shtml
    h7.ylt6wgty.cn/Article/0107_2104.shtml
    h7.ylt6wgty.cn/Article/0107_1399.shtml
    h7.ylt6wgty.cn/Article/0107_7345.shtml
    h7.ylt6wgty.cn/Article/0107_3611.shtml
    h7.ylt6wgty.cn/Article/0107_2975.shtml
    h7.ylt6wgty.cn/Article/0107_8120.shtml
    h7.ylt6wgty.cn/Article/0107_2857.shtml
    h7.ylt6wgty.cn/Article/0107_2179.shtml
    h7.ylt6wgty.cn/Article/0107_3816.shtml
    h7.ylt6wgty.cn/Article/0107_0717.shtml
    h7.ylt6wgty.cn/Article/0107_0444.shtml
    h7.ylt6wgty.cn/Article/0107_2220.shtml
    h7.ylt6wgty.cn/Article/0107_6818.shtml
    h7.ylt6wgty.cn/Article/0107_8442.shtml
    h7.ylt6wgty.cn/Article/0107_1697.shtml
    h7.ylt6wgty.cn/Article/0107_3999.shtml
    h7.ylt6wgty.cn/Article/0107_7573.shtml
    h7.ylt6wgty.cn/Article/0107_0414.shtml
    h7.ylt6wgty.cn/Article/0107_5599.shtml
    h7.ylt6wgty.cn/Article/0107_9811.shtml
    h7.ylt6wgty.cn/Article/0107_7052.shtml
    h7.ylt6wgty.cn/Article/0107_8402.shtml
    h7.ylt6wgty.cn/Article/0107_2561.shtml
    h7.ylt6wgty.cn/Article/0107_1366.shtml
    h7.ylt6wgty.cn/Article/0107_5802.shtml
    h7.ylt6wgty.cn/Article/0107_9396.shtml
    h7.ylt6wgty.cn/Article/0107_1605.shtml
    h7.ylt6wgty.cn/Article/0107_2996.shtml
    h7.ylt6wgty.cn/Article/0107_7970.shtml
    h7.ylt6wgty.cn/Article/0107_9529.shtml
    h7.ylt6wgty.cn/Article/0107_3580.shtml
    h7.ylt6wgty.cn/Article/0107_9135.shtml
    h7.ylt6wgty.cn/Article/0107_6209.shtml
    h7.ylt6wgty.cn/Article/0107_1242.shtml
    h7.ylt6wgty.cn/Article/0107_7150.shtml
    h7.ylt6wgty.cn/Article/0107_1034.shtml
    h7.ylt6wgty.cn/Article/0107_7173.shtml
    h7.ylt6wgty.cn/Article/0107_9847.shtml
    h7.ylt6wgty.cn/Article/0107_0578.shtml
    h7.ylt6wgty.cn/Article/0107_6590.shtml
    h7.ylt6wgty.cn/Article/0107_3309.shtml
    h7.ylt6wgty.cn/Article/0107_4406.shtml
    h7.ylt6wgty.cn/Article/0107_7034.shtml
    h7.ylt6wgty.cn/Article/0107_1360.shtml
    h7.ylt6wgty.cn/Article/0107_6652.shtml
    h7.ylt6wgty.cn/Article/0107_9296.shtml
    h7.ylt6wgty.cn/Article/0107_3133.shtml
    h7.ylt6wgty.cn/Article/0107_2063.shtml
    h7.ylt6wgty.cn/Article/0107_6813.shtml
    h7.ylt6wgty.cn/Article/0107_7978.shtml
    h7.ylt6wgty.cn/Article/0107_5841.shtml
    h7.ylt6wgty.cn/Article/0107_2882.shtml
    h7.ylt6wgty.cn/Article/0107_0622.shtml
    h7.ylt6wgty.cn/Article/0107_5541.shtml
    h7.ylt6wgty.cn/Article/0107_7790.shtml
    h7.ylt6wgty.cn/Article/0107_5466.shtml
    h7.ylt6wgty.cn/Article/0107_2839.shtml
    h7.ylt6wgty.cn/Article/0107_8433.shtml
    h7.ylt6wgty.cn/Article/0107_6283.shtml
    h7.ylt6wgty.cn/Article/0107_0317.shtml
    h7.ylt6wgty.cn/Article/0107_8416.shtml
    h7.ylt6wgty.cn/Article/0107_6081.shtml
    h7.ylt6wgty.cn/Article/0107_5141.shtml
    h7.ylt6wgty.cn/Article/0107_1440.shtml
    h7.ylt6wgty.cn/Article/0107_7362.shtml
    h7.ylt6wgty.cn/Article/0107_3320.shtml
    h7.ylt6wgty.cn/Article/0107_2402.shtml
    h7.ylt6wgty.cn/Article/0107_2136.shtml
    h7.ylt6wgty.cn/Article/0107_6357.shtml
    h7.ylt6wgty.cn/Article/0107_2708.shtml
    h7.ylt6wgty.cn/Article/0107_3728.shtml
    h7.ylt6wgty.cn/Article/0107_1846.shtml
    h7.ylt6wgty.cn/Article/0107_3291.shtml
    h7.ylt6wgty.cn/Article/0107_3423.shtml
    h7.ylt6wgty.cn/Article/0107_6197.shtml
    h7.ylt6wgty.cn/Article/0107_6641.shtml
    h7.ylt6wgty.cn/Article/0107_5098.shtml
    h7.ylt6wgty.cn/Article/0107_2501.shtml
    h7.ylt6wgty.cn/Article/0107_5026.shtml
    h7.ylt6wgty.cn/Article/0107_7320.shtml
    h7.ylt6wgty.cn/Article/0107_6542.shtml
    h7.ylt6wgty.cn/Article/0107_7390.shtml
    h7.ylt6wgty.cn/Article/0107_1355.shtml
    h7.ylt6wgty.cn/Article/0107_7175.shtml
    h7.ylt6wgty.cn/Article/0107_5138.shtml
    h7.ylt6wgty.cn/Article/0107_2869.shtml
    h7.ylt6wgty.cn/Article/0107_7910.shtml
    h7.ylt6wgty.cn/Article/0107_9204.shtml
    h7.ylt6wgty.cn/Article/0107_2544.shtml
    h7.ylt6wgty.cn/Article/0107_4001.shtml
    h7.ylt6wgty.cn/Article/0107_1033.shtml
    h7.ylt6wgty.cn/Article/0107_7662.shtml
    h7.ylt6wgty.cn/Article/0107_8168.shtml
    h7.ylt6wgty.cn/Article/0107_0670.shtml
    h7.ylt6wgty.cn/Article/0107_1729.shtml
    h7.ylt6wgty.cn/Article/0107_1547.shtml
    h7.ylt6wgty.cn/Article/0107_9918.shtml
    h7.ylt6wgty.cn/Article/0107_8078.shtml
    h7.ylt6wgty.cn/Article/0107_4836.shtml
    h7.ylt6wgty.cn/Article/0107_7626.shtml
    h7.ylt6wgty.cn/Article/0107_4099.shtml
    h7.ylt6wgty.cn/Article/0107_8071.shtml
    h7.ylt6wgty.cn/Article/0107_7646.shtml
    h7.ylt6wgty.cn/Article/0107_4407.shtml
    h7.ylt6wgty.cn/Article/0107_8641.shtml
    h7.ylt6wgty.cn/Article/0107_3688.shtml
    h7.ylt6wgty.cn/Article/0107_9646.shtml
    h7.ylt6wgty.cn/Article/0107_5922.shtml
    h7.ylt6wgty.cn/Article/0107_5412.shtml
    h7.ylt6wgty.cn/Article/0107_7916.shtml
    h7.ylt6wgty.cn/Article/0107_9525.shtml
    h7.ylt6wgty.cn/Article/0107_1712.shtml
    h7.ylt6wgty.cn/Article/0107_8169.shtml
    h7.ylt6wgty.cn/Article/0107_5467.shtml
    h7.ylt6wgty.cn/Article/0107_1404.shtml
    h7.ylt6wgty.cn/Article/0107_1031.shtml
    h7.ylt6wgty.cn/Article/0107_4323.shtml
    h7.ylt6wgty.cn/Article/0107_0242.shtml
    h7.ylt6wgty.cn/Article/0107_8196.shtml
    h7.ylt6wgty.cn/Article/0107_8026.shtml
    h7.ylt6wgty.cn/Article/0107_1450.shtml
    h7.ylt6wgty.cn/Article/0107_1327.shtml
    h7.ylt6wgty.cn/Article/0107_8137.shtml
    h7.ylt6wgty.cn/Article/0107_6669.shtml
    h7.ylt6wgty.cn/Article/0107_2515.shtml
    h7.ylt6wgty.cn/Article/0107_2286.shtml
    h7.ylt6wgty.cn/Article/0107_0952.shtml
    h7.ylt6wgty.cn/Article/0107_2289.shtml
    h7.ylt6wgty.cn/Article/0107_6622.shtml
    h7.ylt6wgty.cn/Article/0107_3671.shtml
    h7.ylt6wgty.cn/Article/0107_7408.shtml
    h7.ylt6wgty.cn/Article/0107_0069.shtml
    h7.ylt6wgty.cn/Article/0107_1157.shtml
    h7.ylt6wgty.cn/Article/0107_4076.shtml
    h7.ylt6wgty.cn/Article/0107_3814.shtml
    h7.ylt6wgty.cn/Article/0107_6971.shtml
    h7.ylt6wgty.cn/Article/0107_2628.shtml
    h7.ylt6wgty.cn/Article/0107_8443.shtml
    h7.ylt6wgty.cn/Article/0107_1726.shtml
    h7.ylt6wgty.cn/Article/0107_5873.shtml
    h7.ylt6wgty.cn/Article/0107_6811.shtml
    h7.ylt6wgty.cn/Article/0107_8112.shtml
    h7.ylt6wgty.cn/Article/0107_4524.shtml
    h7.ylt6wgty.cn/Article/0107_1008.shtml
    h7.ylt6wgty.cn/Article/0107_5415.shtml
    h7.ylt6wgty.cn/Article/0107_2493.shtml
    h7.ylt6wgty.cn/Article/0107_5404.shtml
    h7.ylt6wgty.cn/Article/0107_2557.shtml
    h7.ylt6wgty.cn/Article/0107_5619.shtml
    h7.ylt6wgty.cn/Article/0107_6651.shtml
    h7.ylt6wgty.cn/Article/0107_4507.shtml
    h7.ylt6wgty.cn/Article/0107_2140.shtml
    h7.ylt6wgty.cn/Article/0107_7699.shtml
    h7.ylt6wgty.cn/Article/0107_7548.shtml
    h7.ylt6wgty.cn/Article/0107_7060.shtml
    h7.ylt6wgty.cn/Article/0107_6801.shtml
    h7.ylt6wgty.cn/Article/0107_0225.shtml
    h7.ylt6wgty.cn/Article/0107_4944.shtml
    h7.ylt6wgty.cn/Article/0107_9375.shtml
    h7.ylt6wgty.cn/Article/0107_9119.shtml
    h7.ylt6wgty.cn/Article/0107_1644.shtml
    h7.ylt6wgty.cn/Article/0107_2067.shtml
    h7.ylt6wgty.cn/Article/0107_6527.shtml
    h7.ylt6wgty.cn/Article/0107_7622.shtml
    h7.ylt6wgty.cn/Article/0107_6092.shtml
    h7.ylt6wgty.cn/Article/0107_0253.shtml
    h7.ylt6wgty.cn/Article/0107_3435.shtml
    h7.ylt6wgty.cn/Article/0107_6390.shtml
    h7.ylt6wgty.cn/Article/0107_1389.shtml
    h7.ylt6wgty.cn/Article/0107_5871.shtml
    h7.ylt6wgty.cn/Article/0107_6807.shtml
    h7.ylt6wgty.cn/Article/0107_4449.shtml
    h7.ylt6wgty.cn/Article/0107_3316.shtml
    h7.ylt6wgty.cn/Article/0107_3262.shtml
    h7.ylt6wgty.cn/Article/0107_9873.shtml
    h7.ylt6wgty.cn/Article/0107_0622.shtml
    h7.ylt6wgty.cn/Article/0107_7006.shtml
    h7.ylt6wgty.cn/Article/0107_8475.shtml
    h7.ylt6wgty.cn/Article/0107_1349.shtml
    h7.ylt6wgty.cn/Article/0107_3163.shtml
    h7.ylt6wgty.cn/Article/0107_8732.shtml
    h7.ylt6wgty.cn/Article/0107_6564.shtml
    h7.ylt6wgty.cn/Article/0107_2960.shtml
    h7.ylt6wgty.cn/Article/0107_6560.shtml
    h7.ylt6wgty.cn/Article/0107_8775.shtml
    h7.ylt6wgty.cn/Article/0107_0731.shtml
    h7.ylt6wgty.cn/Article/0107_8644.shtml
    h7.ylt6wgty.cn/Article/0107_6984.shtml
    h7.ylt6wgty.cn/Article/0107_1700.shtml
    h7.ylt6wgty.cn/Article/0107_2248.shtml
    h7.ylt6wgty.cn/Article/0107_9279.shtml
    h7.ylt6wgty.cn/Article/0107_2485.shtml
    h7.ylt6wgty.cn/Article/0107_1049.shtml
    h7.ylt6wgty.cn/Article/0107_4701.shtml
    h7.ylt6wgty.cn/Article/0107_5813.shtml
    h7.ylt6wgty.cn/Article/0107_5184.shtml
    h7.ylt6wgty.cn/Article/0107_1706.shtml
    h7.ylt6wgty.cn/Article/0107_3888.shtml
    h7.ylt6wgty.cn/Article/0107_0252.shtml
    h7.ylt6wgty.cn/Article/0107_9981.shtml
    h7.ylt6wgty.cn/Article/0107_7641.shtml
    h7.ylt6wgty.cn/Article/0107_5881.shtml
    h7.ylt6wgty.cn/Article/0107_1401.shtml
    h7.ylt6wgty.cn/Article/0107_1570.shtml
    h7.ylt6wgty.cn/Article/0107_0879.shtml
    h7.ylt6wgty.cn/Article/0107_2102.shtml
    h7.ylt6wgty.cn/Article/0107_5746.shtml
    h7.ylt6wgty.cn/Article/0107_1462.shtml
    h7.ylt6wgty.cn/Article/0107_4317.shtml
    h7.ylt6wgty.cn/Article/0107_1545.shtml
    h7.ylt6wgty.cn/Article/0107_8431.shtml
    h7.ylt6wgty.cn/Article/0107_0599.shtml
    h7.ylt6wgty.cn/Article/0107_2118.shtml
    h7.ylt6wgty.cn/Article/0107_4985.shtml
    h7.ylt6wgty.cn/Article/0107_3395.shtml
    h7.ylt6wgty.cn/Article/0107_6255.shtml
    h7.ylt6wgty.cn/Article/0107_4009.shtml
    h7.ylt6wgty.cn/Article/0107_3709.shtml
    h7.ylt6wgty.cn/Article/0107_4347.shtml
    h7.ylt6wgty.cn/Article/0107_7930.shtml
    h7.ylt6wgty.cn/Article/0107_5407.shtml
    h7.ylt6wgty.cn/Article/0107_5682.shtml
    h7.ylt6wgty.cn/Article/0107_0811.shtml
    h7.ylt6wgty.cn/Article/0107_8439.shtml
    h7.ylt6wgty.cn/Article/0107_9887.shtml
    h7.ylt6wgty.cn/Article/0107_6986.shtml
    h7.ylt6wgty.cn/Article/0107_6205.shtml
    h7.ylt6wgty.cn/Article/0107_5123.shtml
    h7.ylt6wgty.cn/Article/0107_5075.shtml
    h7.ylt6wgty.cn/Article/0107_7701.shtml
    h7.ylt6wgty.cn/Article/0107_0221.shtml
    h7.ylt6wgty.cn/Article/0107_6515.shtml
    h7.ylt6wgty.cn/Article/0107_9800.shtml
    h7.ylt6wgty.cn/Article/0107_3959.shtml
    h7.ylt6wgty.cn/Article/0107_2715.shtml
    h7.ylt6wgty.cn/Article/0107_1322.shtml
    h7.ylt6wgty.cn/Article/0107_6463.shtml
    h7.ylt6wgty.cn/Article/0107_1315.shtml
    h7.ylt6wgty.cn/Article/0107_4684.shtml
    h7.ylt6wgty.cn/Article/0107_3734.shtml
    h7.ylt6wgty.cn/Article/0107_9057.shtml
    h7.ylt6wgty.cn/Article/0107_4334.shtml
    h7.ylt6wgty.cn/Article/0107_4398.shtml
    h7.ylt6wgty.cn/Article/0107_0924.shtml
    h7.ylt6wgty.cn/Article/0107_9117.shtml
    h7.ylt6wgty.cn/Article/0107_0258.shtml
    h7.ylt6wgty.cn/Article/0107_2958.shtml
    h7.ylt6wgty.cn/Article/0107_6888.shtml
    h7.ylt6wgty.cn/Article/0107_3218.shtml
    h7.ylt6wgty.cn/Article/0107_4548.shtml
    h7.ylt6wgty.cn/Article/0107_9813.shtml
    h7.ylt6wgty.cn/Article/0107_6678.shtml
    h7.ylt6wgty.cn/Article/0107_9893.shtml
    h7.ylt6wgty.cn/Article/0107_2870.shtml
    h7.ylt6wgty.cn/Article/0107_4331.shtml
    h7.ylt6wgty.cn/Article/0107_4005.shtml
    h7.ylt6wgty.cn/Article/0107_3445.shtml
    h7.ylt6wgty.cn/Article/0107_6374.shtml
    h7.ylt6wgty.cn/Article/0107_7657.shtml
    h7.ylt6wgty.cn/Article/0107_2834.shtml
    h7.ylt6wgty.cn/Article/0107_1620.shtml
    h7.ylt6wgty.cn/Article/0107_5157.shtml
    h7.ylt6wgty.cn/Article/0107_4611.shtml
    h7.ylt6wgty.cn/Article/0107_9175.shtml
    h7.ylt6wgty.cn/Article/0107_4179.shtml
    h7.ylt6wgty.cn/Article/0107_0206.shtml
    h7.ylt6wgty.cn/Article/0107_2282.shtml
    h7.ylt6wgty.cn/Article/0107_9433.shtml
    h7.ylt6wgty.cn/Article/0107_6994.shtml
    h7.ylt6wgty.cn/Article/0107_9214.shtml
    h7.ylt6wgty.cn/Article/0107_6504.shtml
    h7.ylt6wgty.cn/Article/0107_4088.shtml
    h7.ylt6wgty.cn/Article/0107_8769.shtml
    h7.ylt6wgty.cn/Article/0107_2520.shtml
    h7.ylt6wgty.cn/Article/0107_3986.shtml
    h7.ylt6wgty.cn/Article/0107_1708.shtml
    h7.ylt6wgty.cn/Article/0107_2841.shtml
    h7.ylt6wgty.cn/Article/0107_9576.shtml
    h7.ylt6wgty.cn/Article/0107_1031.shtml
    h7.ylt6wgty.cn/Article/0107_8496.shtml
    h7.ylt6wgty.cn/Article/0107_0944.shtml
    h7.ylt6wgty.cn/Article/0107_5287.shtml
    h7.ylt6wgty.cn/Article/0107_8788.shtml
    h7.ylt6wgty.cn/Article/0107_1326.shtml
    h7.ylt6wgty.cn/Article/0107_5114.shtml
    h7.ylt6wgty.cn/Article/0107_0541.shtml
    h7.ylt6wgty.cn/Article/0107_8586.shtml
    h7.ylt6wgty.cn/Article/0107_5700.shtml
    h7.ylt6wgty.cn/Article/0107_7942.shtml
    h7.ylt6wgty.cn/Article/0107_8542.shtml
    h7.ylt6wgty.cn/Article/0107_7152.shtml
    h7.ylt6wgty.cn/Article/0107_1337.shtml
    h7.ylt6wgty.cn/Article/0107_1711.shtml
    h7.ylt6wgty.cn/Article/0107_4730.shtml
    h7.ylt6wgty.cn/Article/0107_1285.shtml
    h7.ylt6wgty.cn/Article/0107_9012.shtml
    h7.ylt6wgty.cn/Article/0107_9515.shtml
    h7.ylt6wgty.cn/Article/0107_0214.shtml
    h7.ylt6wgty.cn/Article/0107_7055.shtml
    h7.ylt6wgty.cn/Article/0107_9106.shtml
    h7.ylt6wgty.cn/Article/0107_7617.shtml
    h7.ylt6wgty.cn/Article/0107_0369.shtml
    h7.ylt6wgty.cn/Article/0107_3699.shtml
    h7.ylt6wgty.cn/Article/0107_4680.shtml
    h7.ylt6wgty.cn/Article/0107_9883.shtml
    h7.ylt6wgty.cn/Article/0107_2804.shtml
    h7.ylt6wgty.cn/Article/0107_4399.shtml
    h7.ylt6wgty.cn/Article/0107_9659.shtml
    h7.ylt6wgty.cn/Article/0107_3222.shtml
    h7.ylt6wgty.cn/Article/0107_8409.shtml
    h7.ylt6wgty.cn/Article/0107_9373.shtml
    h7.ylt6wgty.cn/Article/0107_2093.shtml
    h7.ylt6wgty.cn/Article/0107_6501.shtml
    h7.ylt6wgty.cn/Article/0107_6659.shtml
    h7.ylt6wgty.cn/Article/0107_9294.shtml
    h7.ylt6wgty.cn/Article/0107_6857.shtml
    h7.ylt6wgty.cn/Article/0107_3909.shtml
    h7.ylt6wgty.cn/Article/0107_8768.shtml
    h7.ylt6wgty.cn/Article/0107_9869.shtml
    h7.ylt6wgty.cn/Article/0107_5636.shtml
    h7.ylt6wgty.cn/Article/0107_6239.shtml
    h7.ylt6wgty.cn/Article/0107_7304.shtml
    h7.ylt6wgty.cn/Article/0107_8831.shtml
    h7.ylt6wgty.cn/Article/0107_0704.shtml
    h7.ylt6wgty.cn/Article/0107_2759.shtml
    h7.ylt6wgty.cn/Article/0107_7650.shtml
    h7.ylt6wgty.cn/Article/0107_7466.shtml
    h7.ylt6wgty.cn/Article/0107_1390.shtml
    h7.ylt6wgty.cn/Article/0107_0676.shtml
    h7.ylt6wgty.cn/Article/0107_5096.shtml
    h7.ylt6wgty.cn/Article/0107_9571.shtml
    h7.ylt6wgty.cn/Article/0107_0566.shtml
    h7.ylt6wgty.cn/Article/0107_4625.shtml
    h7.ylt6wgty.cn/Article/0107_4358.shtml
    h7.ylt6wgty.cn/Article/0107_0367.shtml
    h7.ylt6wgty.cn/Article/0107_0926.shtml
    h7.ylt6wgty.cn/Article/0107_5581.shtml
    h7.ylt6wgty.cn/Article/0107_8763.shtml
    h7.ylt6wgty.cn/Article/0107_1339.shtml
    h7.ylt6wgty.cn/Article/0107_5815.shtml
    h7.ylt6wgty.cn/Article/0107_3071.shtml
    h7.ylt6wgty.cn/Article/0107_5655.shtml
    h7.ylt6wgty.cn/Article/0107_6625.shtml
    h7.ylt6wgty.cn/Article/0107_4077.shtml
    h7.ylt6wgty.cn/Article/0107_6091.shtml
    h7.ylt6wgty.cn/Article/0107_7363.shtml
    h7.ylt6wgty.cn/Article/0107_5715.shtml

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

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

相关文章

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;计算斐波那契数列、排序数组、处理文件等…

30秒掌握Python快速排序

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

全网最全专科生必用TOP8 AI论文平台测评

全网最全专科生必用TOP8 AI论文平台测评 2026年专科生论文写作工具测评&#xff1a;为何需要一份权威榜单&#xff1f; 随着AI技术在学术领域的广泛应用&#xff0c;越来越多的专科生开始借助AI工具提升论文写作效率。然而&#xff0c;面对市场上琳琅满目的论文平台&#xff0c…

Android应用程序 c/c++ 崩溃排查流程二——AddressSanitizer工具使用

目录 1.背景 2.ASan工具集成到应用中进行使用 3.使用ASan工具查看日志 1.背景 由于在Android应用中进行c/c编程会有各种crash或者内存指针异常&#xff0c;如果内存需要查看哪地方进行释放内存是无法通过addr2line或者ndk-stack工具排查出来的&#xff0c;这时就需要使用Add…

电车的真相,700公里续航跑长途仅是勉强够,有效续航仅六成

随着纯电车的续航不断提升&#xff0c;如今部分电车的续航已达到700公里了&#xff0c;单从数据来看&#xff0c;电车达到这样的续航应该能充分满足要求了&#xff0c;但是只要一跑长途&#xff0c;就会发现这样的续航仅仅是勉强够&#xff0c;这是因为快充技术的特性决定的。车…