In javascript, object values can be accessed by using either
When the key contains a dash, you cannot use the
.
or []
When the key contains a dash, you cannot use the
.
notation because the -
will be interpreted as "minus". This is not related to express
, it's just how javascript works.
So you should use:
req.query["message-timestamp"]
Không có nhận xét nào:
Đăng nhận xét