如題:這樣的情況怎么解決好呢?,然道寫一個提交前處理keywords再拼接上去的方法?代碼:<form acceptCharset="gbk" method="get" action="https:xxx_search.htm?product=true&tags=123" >
<div className="searchBar">
<input className="searchVal" placeholder="輸入關鍵詞搜索"
value={this.state.value} name="keywords"
onChange={event => {
this.setState({
value: event.target.value,
});
}} /> <button className="searchBtn" type="submit">搜索</button>
</div>
</form>
form表單提交數據時,keywords會替換掉之前原有的參數?
開滿天機
2018-07-23 21:54:07