按拼音分組模板

<!--公用Foot和友情連接-->spa

<div class="h05"></div>
 <div class="footer">
  <div class="footer-bd">
    <p>
      <em>&copy; 2015 12308.com 版權全部</em>
      <b>|</b>
      <span>粵ICP備14020827號-1</span>
    </p>
    <p>
      <a href="http://baoding.changtu.com/" target="_blank" title="保定汽車總站">保定汽車總站</a><b>|</b>

    </p>
<!-- 按拼音分組模板 -->ip

<script type="text/template" id="shortPinyinGroup-template">ci

<% _.each(shortPinyins, function(pinyin) {%>get

<li class="letter" data="<%=pinyin%>" style="display:none"><%=pinyin%></li>it

<% _.each(datas[pinyin], function(value,index,obj) {%>io

<li style="display:none" method="liHotData" data="<%=pinyin%>" data-placeid="<%=value.get('provinceName')%><%=value.get('name')%>" data-placetype="<%=value.get('typeNo')%>" data-presell="<%=value.get('preDate')%>"><%=value.get('name')%></li>function

<% if((index+1)%5==0){%>模板

<li class="letter" data="<%=pinyin%>" style="display:none"></li>class

<%}%>di

<%});%>

<li class="let_line" data="<%=pinyin%>" style="display:none"></li>

<%});%>

</script>

<script type="text/template" id="endCitys-template">

<ul>

<p>輸入中文/拼音/或↑↓鍵選擇</p>

<% _.each(data, function(city,index,obj) {%>

<% if(index== 0){%>

<li class="hover" title="<%=city.name%>"><i><%=city.name%></i><b><%=city.provinceName%></b></li>

<%}else{%>

<li title="<%=city.name%>"><i><%=city.name%></i><b><%=city.provinceName%></b></li>

<%}%>

<%});%>

</ul>

</script>

相關文章
相關標籤/搜索