Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jqueryairport插件:如何让它与特殊字符一起工作?_Javascript_Jquery_Plugins_Special Characters - Fatal编程技术网

Javascript jqueryairport插件:如何让它与特殊字符一起工作?

Javascript jqueryairport插件:如何让它与特殊字符一起工作?,javascript,jquery,plugins,special-characters,Javascript,Jquery,Plugins,Special Characters,我正在使用cool,并试图让它接受特殊字符(如重音“&”等)。默认情况下,它仅适用于a-z 有人知道怎么做吗?有一个chars数组,您可以向其中添加字符 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:有时候,查看程

我正在使用cool,并试图让它接受特殊字符(如重音“&”等)。默认情况下,它仅适用于a-z


有人知道怎么做吗?

有一个
chars
数组,您可以向其中添加字符

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:有时候,查看程序的源代码会很有启发性

您必须正确设置chars数组

var chars = ['a', ..., 'z', ' ', '-', '&', 'ä', 'ö', 'ü'];
请检查一下这把小提琴


这些示例使用了一些德语umlauts(äöü),但您可能会包括任何其他字符。

是的,我很快就这样做了,不幸的是,它似乎不起作用。