日期:2014-05-17 浏览次数:20474 次
function rnames() { var r_name = $("#r_name").val(); var aaa = ""; $.ajax({ type: "POST", url: '../Personcentered/r_nametest.aspx', data: { r_name: r_name }, success: function (msg) { if (msg == "1") { tixing("简历名称已经存在"); return false; } else { return true; } } }); }
function rnames() { var ret = false; var r_name = $("#r_name").val(); var aaa = ""; $.ajax({ type: "POST", async: false, url: '../Personcentered/r_nametest.aspx', data: { r_name: r_name }, success: function (msg) { if (msg == "1") { tixing("简历名称已经存在"); ret = false; } else { ret = true; } } }); return ret; }
------解决方案--------------------