这是一个创建于 4183 天前的主题,其中的信息可能已经有所发展或是发生改变。
我想
item/10000 showhandler
item/10000/edit edithandler
item/10000/delete deletehandler
链接正则该如何写?
就是edit,delete这种不知道如何处理。
2 条回复 • 1970-01-01 08:00:00 +08:00
![binux](https://cdn.v2ex.com/avatar/247d/87b0/8105_normal.png?m=1407157990) |
|
1
binux 2013-01-01 18:19:37 +08:00 1
(r"item/(\d+)", showhandler) (r"item/(\d+)/edit", showhandler) (r"item/(\d+)/delete", showhandler)
|
![kenneth](https://cdn.v2ex.com/static/img/avatar_normal.png) |
|
2
kenneth 2013-01-01 19:09:12 +08:00
@ binux 感谢已发,我一开始配置的正则,我错在没加(),又傻了,谢谢提点。
|