Home >Web Front-end >JS Tutorial >jQuery.ajax user login verification code_jquery

jQuery.ajax user login verification code_jquery

WBOY
WBOYOriginal
2016-05-16 18:17:451084browse
Copy code The code is as follows:

$.ajax({ type: "post", url: "Handler1 .ashx", data: { username: "admin", password: "123" },
success: successHandle });
function successHandle(rep) {
$("#msg").html (rep);
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn