摘要:
自己写的 一个选择城市的插件 自豪感横生html:<input type="text" id="job_post_work_location" autocomplete="off">调用方法 $.bindCitySuggestion('#job_post_work_location');源码如下:(function($){ $.bindCitySuggestion = function(nodeSelector){ var node = $(nodeSelector), popularCity = [ 阅读全文
摘要:
$(document).mouseup(function(e){ var containers = $('#workplace_suggestion_section, #job_post_work_location'); containers.each(function(){ if($(this).has(e.target).length === 0){ suggestionSectionNode.hide(); } });}); 阅读全文