文档介绍:头像上传的js调用
<script type ="text/javascript"> var time = new Date().getTime(); var mpath="${my431fn:isHavePhoto(uploadLoginUrl,,myRealPath)}"; if(mpath== ''||mpath== 'null'){ mpath= '${portalLoginUrl}/sportal/skins/images/' ; }else{ mpath=mpath+time } function uploadevent(status){ status += ''; switch(status){
case '1': ('fileName').value="${nFileName}"; ('fileExt').value=".jpg"; ('sourceUrl').value="${allPath}"; var params=$("#frm").serialize(); $.ajax({ type: "post", url:'${root}/studio/SdStudio/?date='+new Date().getTime(), data:params, error: function(XMLHttpRequest, textStatus, errorThrown) { }, success: function(responseText){ var tabId = $("#studioUl a[class='on']").attr('id'); if (tabId=='hot_studio_tab') { studioListTip('${root}','hotStudio','hot','month'); }else if (tabId=='my_studio_ta