且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

建议*** URL 样式

更新时间:2023-02-26 19:02:00

我自己选择了***的解决方案.我觉得第二个约定,即 允许以任何顺序***传递 URL 参数 更好,因为如果在某些情况下不传递一个或多个参数,第一个约定可能会导致背对背斜线.要了解更多关于为什么我们应该避免不必要的背对背斜杠检查 为什么我们不这样做不使用此类 URL 格式?

I have chosen the best solution myself. I feel the 2nd convention , i.e. Allowing freedom to pass URL params in any order is better only because the 1st convention may result into back to back slashes if one or more parameters are not to be passed in some case. To read more on why we should avoid unnecessary back to back slashes check Why we don’t use such URL formats?