<a href="javascript:;" onclick="javascript:getsensitive()" style="width: 100px;margin-bottom: 4px; height:35px; text-decoration: none;text-align:center;" class="btn btn-primary radius"> <i class="Hui-iconfont"></i><span style="margin-top: 1">查询</span> </a> </a>
js:
<script language="javascript" type="text/javascript">
function getsensitive() {
var ddpage = first; var sensitiveword = document.getElementById("sensitiveword").value; alert(sensitiveword ); var sensitivetype = document.getElementById("sensitivetype").value; alert(sensitivetype ); if ((sensitiveword == "")&&(sensitivetype == "")) { alertify.alert("查询条件不能为空"); } else { if ((sensitiveword != "")||(sensitivetype != "")) { $.ajax({ url : "sensitive.servlet?action=select&sensitiveword=" + sensitiveword + "&sensitivetype=" + sensitivetype + "&ddpage="+ddpage, type : "POST", //async : false, beforeSend : function() { showDiv(); }, complete : function() { closeDiv(); } }); } }
}
</script>
点击没有反应,不触发 alert也没有反应。看看哪里错了。。
去掉javascript:
一周热门 更多>