我将它用于标签:https ://github.com/sniperwolf/taggingJS/
下面的代码用于初始化 taaggingJS
var myOptions =
{
"no-duplicate": true,
"no-duplicate-callback": null,
"type-zone-class": "type-zone",
"tag-box-class": "tagging",
"forbidden-chars": ["!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "=", "+", "`", "~", "[", "]", "{", "}", "|", ";", ":", "'", "<", ">", ",", ".", "/", "?"],
"forbidden-chars-callback": null
// chars not included ",
};
$("#post_tags").tagging(myOptions);
每当我打字时。(句号)在 div 中,它响应错误说明
未捕获的 TypeError:b 不是 n.throwError 处的函数(tagging.min.js:1)
无法弄清楚为什么?任何人都可以帮助解决这个问题吗?