Some requirement in my school project asks to send some AJAX request to the server at the URL:
http://localhost:8000/messages/:id
where should I set the id value as a unique number. I know what ?search query means and #as mentioned here , but what does it mean :? and if I set the id value to 123, as shown, for example: http://localhost:8000/messages/:123 or like this:http://localhost:8000/messages/123
?
#
:
http://localhost:8000/messages/:123
http://localhost:8000/messages/123
I appreciate any help
The third :in the URL you submit is just a placeholder indicating what the idvariable name is. Therefore, :idit is necessary to replace with a value, for example 123.
id
:id
.
URL- ':'. , . host:port - localhost, - 8000.
host:port
, ': id', , id . , "123". , url (../messages/id) (../messages/:id).
../messages/id
../messages/:id
: .
Source: https://habr.com/ru/post/1684661/More articles:Исключение в режиме отладки, когда переменная const const инициализируется в объявлении класса - c++Why is the behavior of setTimeout (0) and setImmediate () undefined used in the main module? - node.jsEclipse Oxygen - проблема отладки "Step Over" - debuggingHow do rust locks work and how do they close? - closuresHow to call rvalue member function from another rvalue member function? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1684662/firebase-cannot-understand-what-targets-to-deploy&usg=ALkJrhighI_L18SmMjpboUnCS_v5no2QKwJavaScript, the best way to find the index span in an array with a given number - javascriptNoSuchMethodError: java.lang.Long.hashCode - androidFind duplicates of some keys in an array of JavaScript objects and set the corresponding key to true - javascriptDoes Microsoft admin consent to use the azure active directory takes time to distribute? - microsoft-graphAll Articles