- $.post(requestUrl, {“action”:“register”,“user_name”:user_name,“active”: “1”,
- “user_password”: user_password, “role”: “8”, “mobile”: phone, “email”: email, “yanzheng”:yanzheng,“isCreate”:true},
FIX:
You are sending the object element user_password. You should post the value of object in post method user_password.value($(“#user_password”).val()).
只因为写错了一个变量,擦擦,,
passwd = $(“#user_password”).val();
r_passwd = $(“#r_password”).val();
- $.post(requestUrl, {“action”:“register”,“user_name”:user_name,“active”: “1”,
- “user_password”: password, “role”: “8”, “mobile”: phone, “email”: email, “yanzheng”:yanzheng,“isCreate”:true},
未经允许不得转载:ganlei的个人博客 » TypeError: ‘stepUp’ called on an object that does not implement interface HTMLInputElement in jquery