$('textarea').textcomplete({ // mentionã¯åãªãååã§æå³ã¯ããã¾ããã // åãããããååãã¤ãã¦ãã ããã mention: { // å¿ é è¨å® match: /(^|\s)@(\w*)$/, search: function (term, callback) { // callback ã«ã¯æååã®é åã渡ã $.getJSON('/search', { q: term }) .done(function (resp) { callback(resp); }) .fail(function () { callback([]); }); }, replace: function (value) { return '$1@' + value + ' '; }, // ä»»æè¨å®ï¼ä¸è¨ã¯ããããããã©ã«ãå¤ï¼ index: 2, maxCount:

{{#tags}}- {{label}}
{{/tags}}