jQuery Slug Plugin 介绍
The jQuery Slug Plugin is a simple plugin which can be used to generate
post slugs based on the content of a text input field.
In a few steps, a regex and the replace() method are used to sanitize the
val() of the field that slug() is initialized on, and the sanitized slug is
inserted as the value of a hidden input field (you specify the class of the
field to insert to), and also inserted into a span so the user can see the
post slug. Optionally you can choose to show the input field and hide the
span.
jQuery Slug Plugin 官网
http://plugins.jquery.com/project/slug
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。