1.jsp页面
·html代码
用户名
密码
确认密码
上传头像
立即注册
重置
·js代码
//上传头像的方法
var uploadInst = upload.render({
elem: '#test1' /*根据绑定id,打开本地图片*/
,url: '/reg' /*上传后台接受接口*/
,auto: false /*true为选中图片直接提交,false为不提交根据bindAction属性上的id提交*/
,bindAction: '#get'
,drag:true
,auto: false
,choose:function(obj){
//预