获取keydown值拼接url地址传值
var url = `http://47.108.197.28:3000/search?keywords=`
$("#app").keydown(function(event){
if(event.keyCode==13){
var value = $(this).val();
if(value.trim()){
var httpUrl = url+value;
/* 已经获取到数据 */
console.log(httpUrl)
$("#container").html(httpUrl)
}
}
})