The left-hand side of an assignment must be a variable这个怎么改?JCore.checkUserName = function(username,base){base = base || '';$.postJson(base + '/jeecms/core/ajax/checkUserName.do', {'username' : username},function(data){if (data.succes
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 21:31:10
The left-hand side of an assignment must be a variable这个怎么改?JCore.checkUserName = function(username,base){base = base || '';$.postJson(base + '/jeecms/core/ajax/checkUserName.do', {'username' : username},function(data){if (data.succes
The left-hand side of an assignment must be a variable这个怎么改?
JCore.checkUserName = function(username,base)
{
base = base || '';$.postJson(base + '/jeecms/core/ajax/checkUserName.do', {'username' : username},
function(data){
if (data.success)
{alert('该用户名没有被注册,可以使用.');}else{alert('该用户名已经被注册');}
};
}
还有String literal is not properly closed by a matching quote.怎么回事捏?
The left-hand side of an assignment must be a variable这个怎么改?JCore.checkUserName = function(username,base){base = base || '';$.postJson(base + '/jeecms/core/ajax/checkUserName.do', {'username' : username},function(data){if (data.succes
JCore.checkUserName = function(username,base)
{
base = base || '';
$.postJson( base + '/jeecms/core/ajax/checkUserName.do',
{ 'username' :username },
function(data)
{
if (data.success)
{
alert('该用户名没有被注册,可以使用.');
}
else
{
alert('该用户名已经被注册');
}
});
};