//; $('#search_list').empty().append(html); $('.candidate').show(); } else { $('#search_list').empty(); } } }); } } $("form").submit(function (e) { var key = $("#q").val(); key = key.replace(/(\.)?/g, ''); if (key != '') { location.href = '/searchzz' + key + '.html'; } e.preventDefault(); return false; }); $(".top_content_top_btn").click(function () { // console.log("点击了搜索"); var key = $("#q").val(); key = key.replace(/\./g, ''); if (key != '') { location.href = '/searchzz' + key + '.html'; } })