Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须使用用户名验证文本框,如果用户名在我们的数据库中不存在,它必须显示一条错误消息。我想用java脚本来做。
我尝试过使用自动回发方法。
我不知道如何为此使用java脚本,请帮忙
一探究竟。
$.ajax({ url: "script.aspx", type: "POST", data: { id : menuId }, sucess: funxtion(ispresent){if(ispresent) {alert('data is present'); } else{alert('data is not present'); });