diff --git a/admin/write-js.php b/admin/write-js.php index 576d9992..4648d999 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -67,7 +67,11 @@ $(document).ready(function() { animateDropdown : false, hintText : '', noResultsText : '此标签不存在, 按回车创建', - prePopulate : tagsPre + prePopulate : tagsPre, + + onResult : function (result) { + return result.slice(0, 5); + } }); // tag autocomplete 提示宽度设置