时间:2021-07-01 10:21:17 帮助过:3人阅读
<script type="text/javascript">
function checkValidate(){
if($("#signOut").text()){
window.location.href="<%=basePath%>/jsp/weibo/index.jsp";
}else{
window.location.href="<%=basePath%>index.jsp";
}
}
</script>
3.解释:
$("#signOut").text()为我所需要判断的对应ID的Html元素的值