Home  >  Article  >  Backend Development  >  javascript - wiki的链接方式是怎么实现的?

javascript - wiki的链接方式是怎么实现的?

WBOY
WBOYOriginal
2016-06-06 20:42:181113browse

那个wikipedia的

[[条目]]

链接是怎么实现的?

一直不明白这个是怎么实现的?用PHP、JS是肿么作到的呢?

看了老半天的tiddlywiki源码,实现是小白菜看不明白啊,求路过的大仙们给给讲讲。

回复内容:

那个wikipedia的

[[条目]]

链接是怎么实现的?

一直不明白这个是怎么实现的?用PHP、JS是肿么作到的呢?

看了老半天的tiddlywiki源码,实现是小白菜看不明白啊,求路过的大仙们给给讲讲。

正则替换然后按照特定的规则生成目录和文件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn