Jquery,将标题转换为Slug [英] Jquery, Convert Title to Slug
本文介绍了Jquery,将标题转换为Slug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个PHP脚本执行以下操作:它需要一个字符串,例如,这是一个伟大的博客帖子,#1!,并返回以下字符串,这是一个很棒的博客-post-1\" 。
I have a PHP script that does the following: It takes a string, for example, "This is a Great Blog Post, #1!", and returns the following string, "this-is-a-great-blog-post-1".
我不是一个Jquery专家,这就是我问这个问题的原因。有人知道Jquery(或Javascript,就此而言)脚本将与我的脚本做同样的事情吗?在此先感谢。
I'm not exactly a Jquery expert, that's why I'm asking this question. Does someone know of a Jquery (or Javascript, for that matter) script that will do the same thing as my script? Thanks in advance.
将
推荐答案
Theres a 插件! :)
Theres a plugin for that! :)
这篇关于Jquery,将标题转换为Slug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文