Home > Backend Development > PHP Tutorial > javascript - 长链接转短链接如果不用微博等第三方服务自己怎么写?

javascript - 长链接转短链接如果不用微博等第三方服务自己怎么写?

WBOY
Release: 2016-06-06 20:26:12
Original
1823 people have browsed it

我的意思是,还是自己的主网址,把后面的长乱码换成短的?实现起来复杂么?能否讲讲?

回复内容:

我的意思是,还是自己的主网址,把后面的长乱码换成短的?实现起来复杂么?能否讲讲?

很简单。。看看这个类你大概就知道怎么弄了。。

http://hashids.org/

也不是转,就是数字递增建立映射即可。62进制。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template