📌  相关文章
📜  反应表单重新加载页面 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:39.530000             🧑  作者: Mango

代码示例1
afterSubmission(event) {
    event.preventDefault();
    let name = this.state.itemName;
    this.setState ({
        storedItemName:this.state.itemName
    }, function() {
        alert(this.state.storedItemName); // Shows the right value!
    }
}