1、错误描述
2、错误原因
$.ajax({ type:"post", url:"/user/queryUserInfo", dataType:"json", data:{ "userId":$("#userID").val(), "num":num, "type":$("#type").val() }, success:function(resp){ } });
3、解决办法
var num = 0; if($("#type").val() == "1") { num = $("#num").val(); } else { num = 0; } $.ajax({ type:"post", url:"/user/queryUserInfo", dataType:"json", data:{ "userId":$("#userID").val(), "num":num, "type":$("#type").val() }, success:function(resp){ } });
版权声明:本文为博主原创文章,未经博主允许不得转载。
TypeError:'stepUp' called on an object that does not implement interface HTMLInputElement.
原文地址:http://blog.csdn.net/you23hai45/article/details/47617419