我的学校项目中的一些要求要求将一些 AJAX 请求发送到服务器的 url :
http://localhost:8000/messages/:id
Run Code Online (Sandbox Code Playgroud)
我应该将 id 的值设置为唯一的数字。我知道这?意味着查询搜索,正如这里#提到的 ,但这意味着什么?如果我将 id 值设置为等于 123,它是如何显示的,像这样:
或像这样::http://localhost:8000/messages/:123http://localhost:8000/messages/123
我很感激任何帮助