如果我的地址是“http://localhost:8000/index”,我运行这个 jquery:
$.getJSON("1",function(data)
{
.....code
});
我得到“http://localhost:8000/index/1”。那太棒了。但是,如果我希望它是:“http://localhost:8000/1”,我该怎么办?
如果我的地址是“http://localhost:8000/index”,我运行这个 jquery:
$.getJSON("1",function(data)
{
.....code
});
我得到“http://localhost:8000/index/1”。那太棒了。但是,如果我希望它是:“http://localhost:8000/1”,我该怎么办?