$.getJSON(getUrl, params,
function (jsonData) {
$("#verifyCode").removeClass("bcB").addClass("bcC");
if (jsonData.resultCode == '0000' || jsonData.resultCode > 1 && jsonData.resultCode < 6) {
window.location = jsonData.redirectURL;
return;
} else if (jsonData.resultCode == '8008' || jsonData.resultCode == '8013' || jsonData.resultCode == '8014' || jsonData.resultCode == '8007') {
$("#verifyCodeError").show().html("wrong user name");
$("#password").val('');
$("#verifyCode").val('');
$("#password").focus();
} else if (jsonData.resultCode == '8023') {
$("#verifyCodeError").show().html("verify code is wrong");
$("#verifyCode").val('');
$("#verifyCode").focus();
}
이 자바 스크립트의 용도는 무엇입니까? $ .getJSON은 jquery 사용법이 아니므로 누구나 나에게 몇 가지 팁을 줄 수 있습니까? 및 함수 (jsonData), jsonData를 함수에 전달하는 방법은 무엇입니까?
는'$ .getJSON'는 jQuery를 기능 – Alnitak
http://api.jquery.com/jQuery.getJSON/ –
을 _is_ 난 당신이 완전한 일을 게시 한 경우 확실하지 않다. 거기에는 적어도'}'과');가 없으며 컴파일되지 않습니다. – Katana314