En html, cuando hago clic en el botón, capturo eventos con función
function ButtonClickGoToNewsPage(){ $.post('/gotonewspage') }Yo uso nodejs y handlebars
ShowTrangQuanLi(req, res) { res.render('NewsPage', { layout: 'LMain' }) }Pero no representa NewsPage.
Puedo usar
<form action="gotonewspage" method="post"> <button type="submit"></button> </form>funcionará, pero quiero usar jquery post porque necesito realizar alguna función. Cómo puedo resolver este problema. Perdón por mi mal ingles