Xiuno手机端加搜索教程及代码建站心得

已认证已通过实名认证xiuno
管理员
官方成员
2020-9-12 2274

效果演示:


第一步:



<div class="row">
<div class="col-lg-12">
<div class="breadcrumb m-b-sm">
<form action="?search.htm" id="search_form3">
<div class="input-group">
<input type="text" class="form-control" placeholder="关键词" name="keyword" value="">
<span class="input-group-btn"><button class="btn btn-primary" type="submit" id="submit">搜索</button></span>
</div></form>
</div>
</div>
</div>


第二步:
找到

$(function(){
var jsearch_form3 = $('#search_form3');
jsearch_form3.on('submit', function() {
    var keyword = jsearch_form3.find('input[name="keyword"]').val();
    var url = xn.url('search-'+xn.urlencode(keyword));
    window.location = url;
    return false;
});
});




最后于 2020-9-12被xiuno编辑,原因:

未登录提示:


关闭
他们喜欢这个资源
  • xiuno1235
  • zouai520
  • Seven
  • wenwen
  • 1000
  • admins
  • wangyun
  • 15877404804
  • qq581988
  • a692830
最新回复 (0)
    • Xiuno Top网
      2
        登陆 注册
  • a692830
    2
     点击可以快捷回复 感谢支持不错无奈一般生气回帖路过顶帖
    表情
在线客服

特别说明

QQ客服仅提供有偿服务,如无付费意愿,请勿扰!一般问题请站内发帖咨询!
服务项目:
1,xiuno插件模板定制开发
2,xiuno网站BUG修复
3,xiuno个性化定制
4,xiuno仿站等

客服工作时间:8:00~22:00
在线客服