🌈 搜索
📅  最后修改于: 2022-03-11 14:59:48.679000             🧑  作者: Mango
The problem here is with the tag. Its default behavior is to act as a submit button unless otherwise declared and will reload. To keep your tag, add type='button' to the button element. Or you could go with the ole tag with a type='button'.