财神道app下载最新版本-财神到购彩大厅(彩世界)

热门关键词: 财神道app下载最新版本,财神到购彩大厅

常用的js小方法【财神到购彩大厅】

常用的js小方法

<%@taglib prefix=”c” uri=”;

<%
String path = request.getContextPath();
String basePath = request.getScheme() ”://” request.getServerName() ”:” request.getServerPort() path ”/”;
%>
”>
//回车登录

         document.onkeydown = function(e){ 
             var ev = document.all ? window.event : e; 
             if(ev.keyCode==13) { 
                 login();
             }
         };

/**
* 重置
*/

         function reset(){
             $('#loginName').val('');
             $('#passwd').val('');
         }

/**
* 去掉前后空格
*/

    function trim(str) {  
        var tarStr = str.replace(/^s*|s*$/g, "");  
        return tarStr;  
    }

/**
*登录
*/

function login(){
var userId = trim($('#userId').val());
var captchaId = trim($('#captchaId').val());
 var passwordId1 = trim($('#passwordId').val());
var passwordId=$.md5(decodeURI($('#passwordId').val()));
if(userId ==""){
$("#errMsgId").text("用户名必填");
return;
}
if(passwordId1 ==""){
$("#errMsgId").text("密码必填");
return;
}
if(passwordId1 != "" && passwordId1.length<6){
$("#errMsgId").text("密码长度少于6位");
return;
}

if(captchaId ==""){
$("#errMsgId").text("验证码必填");
return;
}
$.ajax({
type : "GET",
            url : "corpManager/loginSys.action?captcha=" captchaId '&passWord=' passwordId '&userAccount=' userId "&d=" Math.random(),
           contentType : "application/json", 
            success : function(data) {
                if(data == '0') {
                $("#errMsgId").text("验证码错误");
                }else if(data == '1'){
                location.href="redirect/toCorp.action?d=" Math.random();;
                }else if(data == '2'){
                $("#errMsgId").text("用户名或密码错误");
                }else{
                $("#errMsgId").text(data);
                }    
            },
            error:function(XMLHttpRequest, textStatus, errorThrow){
            ajaxException(XMLHttpRequest);
            }
});
}

%@taglib prefix=c uri= % String path = request.getContextPath(); String basePath = request.getScheme() :// request.getServerN...

/c:set
/c:set
/c:set
/c:set
/c:set
/c:set

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

超链接传值问题
include.inc如下:

function _check(){ var name=document.getElementById.value; var pass=document.getElementById.value; if (name=="" && name==null) { alert("用户名不能为空"); return false; }else if (pass=="" && pass==null) { alert; return false; } return true;}
${ msg }
<%
session.setAttribute("msg", "");
%>

候选人

登录

三国中,你最喜欢的人物是:

jsp中 表单提交 onsubmit 掉js中的方法不生效
代码如下:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() path "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

/c:forEach

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ include file="include.inc" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() path "/";
%>

vote.jsp 如下:

<%@ taglib prefix="c" uri=";
<%@ taglib prefix="sql"uri=";

<%--<%@ taglib prefix="myfun" uri=";
<%@ page contentType="text/html;charset=gb2312"language="java"%>

本文由财神道app下载最新版本发布于web前端,转载请注明出处:常用的js小方法【财神到购彩大厅】