日期:2014-05-17 浏览次数:20471 次
function uploadevent(status) {
status += '';
switch (status) {
case '1':
alert('上传成功!');
document.getElementById('avatar_priview').innerHTML = "<img src='/Images/UserAvatar/<%=CurrentUserID.ToString() %>.jpg?rnd="+ time + "'/>";
break;
case '999':
alert('上传文件图片过大,请不要超过最大2M!');
break;
case '888':
alert('服务器出现异常!');
break;
case '2':
if (confirm('js call upload')) {