比如存在这样一个请求:
.
p
o
s
t
(
"
/
i
n
d
e
x
/
l
o
g
i
n
"
)
,
我
之
前
写
成
了
这
样
:
.post("/index/login"),我之前写成了这样:
.post("/index/login"),我之前写成了这样:.post(“index/login”)。
这两种情况的差别不大,并且格式都是正确的,但前者是从根路径开始去寻找相对路径,而后者是从当前路径开始。
这个小问题,也让我花了大概半个小时才解决。