开发者

Use express to link urls to window locations?

开发者 https://www.devze.com 2023-04-01 03:34 出处:网络
I want to write something that automatically...开发者_运维问答 example.com/woot -> example.com/#woot

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

精彩评论

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

关注公众号