【发布时间】:2017-06-23 21:41:29
【问题描述】:
我有一个链接到的按钮
<a href="/data_entry?Display=A&ts=<%=dateStamp%><%=locTimeStamp%>">A</a>
我的路线,
router.get('/data_entry/:Display/:ts', function(req,res){
console.log('get display');
});
没有在点击时被调用。链接在 url 中传递,但页面停留在当前页面上。
【问题讨论】:
-
您指定了一个应该用作
/data_entry/something/somethingelse的路径并尝试使用/data_entry?foo=something&bar=somethingelse。
标签: javascript node.js express