wc之上传图片
wc上传图片:以上传头像为例 1.找到 views/default/account/settings/profile.tpl.htm 中 init_avatar_uploader($('#avatar_uploader'), $('#avatar_uploading_status'), $("#avatar_src"));//找到上传的三个控件 2.找到 ../static/js/functions.js 文件中使用了jquery中的AjaxUpload方法 function init_img_uploader(upload_url, upload_name, upload_element, upload_status_elememt, perview_element) { return new AjaxUpload(upload_element, { action: upload_url,//处理的图片上传的action,此处应该为:../app/account/ajax.php中的avatar_upload_action() name: upload_name, responseType: 'json',//数据格式为json onSubmit: function (file, ext) {//提交时做的验证以及页面变化 if (!new RegExp('(png|jpe