此为表单提交是上传截图的代码,待优化: // 添加小程序图片 function addAvatar(obj){ var file = obj.files[0]; limit($('.avatar_box'),$(".avatar-error"),788,file); } function addqr(obj){ var file = obj.files[0]; limit($('.ewmfile_box'),$(".qrimg-error"),788,file);…
function AddToFavorites() { var title = document.title; var url = location.href; if (window.sidebar) // Firefox window.sidebar.addPanel(title, url, ''); else if(window.opera && window.print) // Opera { var elem = document.createElement('a'); elem.…