.
This commit is contained in:
@@ -501,8 +501,8 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util', 'face'], f
|
||||
,shadeClose: true
|
||||
,maxWidth: 10000
|
||||
,skin: 'fly-layer-search'
|
||||
,content: ['<form action="http://cn.bing.com/search">'
|
||||
,'<input autocomplete="off" placeholder="搜索内容,回车跳转" type="text" name="q">'
|
||||
,content: ['<form action="https://www.baidu.com/s">'
|
||||
,'<input autocomplete="off" placeholder="搜索内容,回车跳转" type="text" name="wd">'
|
||||
,'</form>'].join('')
|
||||
,success: function(layero){
|
||||
var input = layero.find('input');
|
||||
@@ -513,7 +513,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util', 'face'], f
|
||||
if(val.replace(/\s/g, '') === ''){
|
||||
return false;
|
||||
}
|
||||
input.val('site:layui.com '+ input.val());
|
||||
input.val(/*'site:layui.com '+ */input.val());
|
||||
});
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user