li 7 years ago
parent
commit
63cd417a2f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      js/common.js

+ 5 - 1
js/common.js

53
$("#hsearchContent").keydown(function(e) {
53
$("#hsearchContent").keydown(function(e) {
54
	if(e.which == 13) {
54
	if(e.which == 13) {
55
		var searchContent = $("#hsearchContent").val();
55
		var searchContent = $("#hsearchContent").val();
56
		console.log(searchContent);
56
		if($(this).siblings()[0].id=="searchh") {
57
			alert(1)
58
		}else{
59
			alert(2)
60
		}
57
		location.href = "searchNew.html?searchContent=" + encodeURI(searchContent);
61
		location.href = "searchNew.html?searchContent=" + encodeURI(searchContent);
58
	}
62
	}
59
})
63
})