Is there any way to indicate in a URL query string that the value should be treated as an integer rather than string? -
Is there any way to indicate in a URL query string that the value should be treated as an integer rather than string? -
the classic query string page?field1=john&field2=123
every server-side framework interpret field1
"john"
, field2
"123"
.
is there way client indicate in query, 'please treat field2
123
(an integer) , not "123"
(a string)'?
i know can have server-side code intelligent , know field2
supposed integer, , parse integer, on client?
url query-string urlencode url-encoding
Comments
Post a Comment