jquery airport插件:如何使它使用特殊字符?

编程入门 行业动态 更新时间:2024-10-08 22:53:20
本文介绍了jquery airport插件:如何使它使用特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用很酷的 jquery机场插件,并试图使其接受特殊字符(例如重音符号&"等).默认情况下,它仅适用于a-z.

I'm using the cool jquery airport plugin and trying to make it accept special characters (like accents, "&", etc.). By default it only works with a-z.

有人发现怎么做吗?

推荐答案

有一个可以添加字符的chars数组.

There is a chars array that you can add characters to.

var chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', ' ', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '-'];

这样做就足够了.

PS:有时候,查看程序的源代码确实很有启发性. ;-)

PS: Sometimes, looking at the source code of a program can be really enlightening. ;-)

更多推荐

jquery airport插件:如何使它使用特殊字符?

本文发布于:2023-11-27 18:43:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639163.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:使它   插件   特殊字符   jquery   airport

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!