Form 学习心得 爱历史 2021-05-12 110 阅读1分钟 Form的submit应该是在action中指定的,如果没有指定,默认的post url是页面url Form不适合用react的function component,function component虽然好用(代码少,好debug因为无状态),但是form是有状态的,最好使用class component