主题 : 搜索的时候报错求指导 |
级别: 解元
![]() |
1# 发表于:2017-09-07 17:34:04 IP:113.84.*.*
|
||||
---|---|---|---|---|---|
级别: 解元
![]() |
2# 发表于:2017-09-07 17:34:26 IP:113.84.*.*
[#if q??] [@cms_lucene_page q=q channelId=channelId startDate=startDate endDate=endDate descLen='170' append='...' count='10'
] <div class="contents"> <div class="xyh_information"> <div class="xyh_xxy"> <div class="xyh_location">当前位置: <a href="${base}/" target="_blank">首页</a> > 搜索 - <span class="search_key_words">${input!}</span> </div> <div class="xyh_xxynrq"> <div class="search_box"> <div class="tit_h2 "><span><a href="javascript:void(0);">结果列表</a></span></div> </div> <div class="search_box2"> <div class="search_dl"> [#list tag_list as s] <dl> <dt> <a href="${s.url!}" target="_blank"> <script> var gjc = '${q!}'; var title = '${s.title}'; var title1 = title.replace(/<[^>]+>/g, ""); var title2 = title1.replace(/ /ig, ""); var title3 = title2.replace(/(^\s*)|(\s*$)/g, ""); if (title3.indexOf(gjc) != -1) { title3 = title3.replace(gjc, '<span class="search_key_words">' + gjc + '</span>'); } document.write(title3); </script> </a> <span>${s.releaseDate}</span></dt> <dd> [#if s.txt??] <div class="search-txt"> [#assign bb=s.txt?replace(" <(S*?)[^>]*>.*?| <.*? />","","ri")?replace(" ","","ri")/] [@text_cut s=bb?replace('${q!}', " <span style='color: red;'>${q!}</span>") len=descLen append=append/] </div> [/#if] </dd> </dl> [/#list] </div> </div> <div class="page"> [#include "../include/page.html"/] </div> </div> </div> </div> </div> </div> </div> [/@cms_lucene_page] [/#if] |
||
---|---|---|---|
级别: 解元
![]() |
3# 发表于:2017-09-07 17:35:06 IP:113.84.*.*
脑袋已经看晕,找不出来错误。。。
|
||
---|---|---|---|
1
共1页