Xiuno手机端加搜索教程及代码 [复制链接]

moqu8 2017-5-2

3416 0
效果演示:
Xiuno手机端加搜索教程及代码

第一步:

Xiuno手机端加搜索教程及代码
<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>

第二步:
找到
Xiuno手机端加搜索教程及代码
$(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;
});
});




最新回复 (0)
返回
支持中心
邮箱:winkill2012@qqcom

历史资源已不再提供任何技术支持和售后服务,客服仅处理无法下载或支付相关问题,资源使用或异常问题请自行解决!
支持中心