li 7 年之前
父节点
当前提交
63cd417a2f
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      js/common.js

+ 5 - 1
js/common.js

@ -53,7 +53,11 @@ $("#searchContent").keydown(function(e) {
53 53
$("#hsearchContent").keydown(function(e) {
54 54
	if(e.which == 13) {
55 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 61
		location.href = "searchNew.html?searchContent=" + encodeURI(searchContent);
58 62
	}
59 63
})