Rumah > Soal Jawab > teks badan
P粉8521147522023-08-15 09:42:15
Jika anda ingin memaksa mencetuskan tindakan, anda boleh menggunakan "post"
方法,而不是"get"
useEffect(() => { if (!standardSelected) return; clearTimeout(sectionListTimeOutId); const clearTimeoutId = setTimeout(() => { console.log('>>> use submit called'); submit({ standard_id: standardSelected }, { method: 'post' }); }, 1000); setSectionListTimeOutId(clearTimeoutId); }, [standardSelected]);