类似google输入keywords 时自动提示;
可以输入多个关键词,每个关键词用逗号隔开,
多个关键词时用到了 javascript的 split方法
截取',' 之间的内容.
split 的用法
function subVal(){
var str ="1,2,3,4,5aed";
//返回逗号之间的内容
var str1=str.split(",", 1000);
//for(var i=0;i<str1.length;i++){
alert(str1[i]);
//}
// alert(str1[str1.length-1]);
}
分享到:
相关推荐
10 Auto-suggest 11 Result grouping / Field collapsing – AVAILABLE 12 Taking Solr to production PART 3: TAKING SOLR TO THE NEXT LEVEL 13 Scaling Solr / Solr Cloud 14 Multi-lingual search 15 Complex ...
Auto-Suggest textbox Auto-Fill for filling related field values on selecting a value for a lookup field Adding option to Selection List dynamically Dynamic Selection List with multiple selection ...
此回购已升级为 余烬自动建议 此组件将在您键入时自动完成或自动建议已完成的搜索查询。 ... 针对 Ember 1.4.0 和 Ember-Data beta 1.0.0-... {{auto-suggest source=controller destination=tags searchPath=make}} min
6. You also can suggest tags from lot's of service (Yahoo! Term Extraction API, OpenCalais, Alchemy, Zemanta, Tag The Net, Local DB) == Changelog == * Version 2.2 : * Add compatibility with WP3.3 ...
Auto Back Links; Create Short URL; Use Short URL; Simple Web Proxy; Page Updated?; HTML to RSS; RSS to HTML; HTML to Mobile; Users Online; Post to Guestbook; Get Guestbook; Post to Chat; View Chat; ...
<tr><td><a href="2.2/suggest.html">2.2输入内容前提示</a></td> <tr><td><a href="2.3/upload.html">2.3带进度的文件上传</a></td> <tr><td><a href="2.4/index.jsp">2.4大量数据动态浏览查询</a></td> <tr><td>...
The following is a summary of its search order: ; 1. SAPI module specific location. ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of ...
Before posting to the newsgroups, I suggest you try to search for an answer on the Google (DejaNews) search engine: http://groups.google.com Chances are that your question has been asked and answered...