在以前的版本中,我可以這樣做:$('#search').typeahead({ name: 'Search', remote: '/search?query=%QUERY'});但是自從0.10更新以來,typeahead.js要求我們定義source我無法使之工作的內(nèi)容。如何定義遠(yuǎn)程而不需要定義數(shù)據(jù)集功能?
我們?nèi)绾卧赥ypeahead.js中設(shè)置遠(yuǎn)程?
三國紛爭
2019-11-28 13:39:24