分类
搜索:
客服
$(".head_2_a").click(function(){ var keywrods=$("#keywrods").val(); window.location.href="./index.php?c=goods&a=list&do=goods&prodid=&keywrods="+keywrods; }) $('#keywrods').bind('keypress', function(event) { //回车事件绑定 if (event.keyCode == "13") { //js监测到为为回车事件时 触发 $("#guangbiao").focus(); var keywrods=$("#keywrods").val(); window.location.href="./index.php?c=goods&a=list&do=goods&prodid=&keywrods="+keywrods; event.preventDefault(); //阻止页面自动刷新,重复加载 } })