/*搜索框*/
var search_box = ['空调', '美的空调', '海尔洗衣机', '华为手机', '海尔冰箱', '热水器', '冰箱', '手机', '洗衣机']
function SetChange(){
var timer=setInterval(function () {
var index = Math.floor(Math.random() * search_box.length)
// console.log(index,search_box[index])
$('input[type=text').val(search_box[index])
},2000)
$("input[type=text").focus(function(){
clearInterval(timer)
$('input[type=text').val('')
});
$('input[type=text').focusout(function(){
$('input[type=text').val('空调')
SetChange()
})
}
SetChange();