function verify() {
var jqueryObj = $("#username");
var username = jqueryObj.val();
//var url = "servlet/UserInfo?username=" encodeURI(encodeURI(username));
var url = "servlet/UserInfo?username=" username;
//ע����������ie���û��漼��������ͬһurl��ֻ�е�һ�λص��ú�̨���Ժ���ʵľ����������
//�������ʱ������Ϳ�����ƭһ��ie��ÿ�ζ����Է��ʺ�̨�ˣ�^_^
url = convertURL(url);
$.get(url, null, callback);
}
function callback(data) {
alert(data);
$("#userInfo").html(data);
}
function convertURL(url) {
var timestamp = new Date().valueOf();
if (url.indexOf("?") > 1) {
url = url "&t=" timestamp;
} else {
url = url "?t=" timestamp;
}
return url;
}
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