浏览器显示错误TypeError: 'stepUp' called on an object thatdoes not implement interface HTMLInputElement.
这是我的源码
name:$("#nameId").val(),
code:$("#codeId").val(),
beginDate:$("#beginDateId").val(),
endDate:$("#endDateId").val(),
valid:$("input[type='radio']:checked"),
note:$("#noteId").val()
错误原因:在获取表单的数据中,某个值获取的是object,而不是具体的数据
我在获取valid的值时没有写完,没有写val(),因而获取到的值时object类型的.所以会报错,添加上val后问题就没有了,