TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement.

TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement.

类型错误:“stepUp”调用了一个没有实现接口HTMLInputElement的对象。

错误地点:

<input type="text" class="inpt" placeholder="" id="signature" />
 $.ajax({
                url: "xxx",
                data: {sign: signature},
......
})

//正确的应该是

$.ajax({
                url: "xxx",
                data: {sign: signature.value},
......
})

 本应该放置数值的数据传输,结果放了页面中的id名,导致报如题的错误。

即就是将错误的类型使用在了错误的地方。

posted @ 2017-09-15 14:49  Danlis  阅读(3363)  评论(0编辑  收藏  举报