开发者

Use express to link urls to window locations?

I want to write something that automatically...开发者_运维问答

example.com/woot -> example.com/#woot

Thanks!


var parsed = url.parse(incomingUrl);
parsed.pathname.replace(/\//, "/#");
var outgoingUrl = url.format(parsed);

Why you want to do this is another question

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜