Property 'submit' of object # is not a function

前端 未结 3 1273
别跟我提以往
别跟我提以往 2020-11-27 05:29

Can anyone explain to me what this error means? I would appreciate it a lot for any kindof help with this.

3条回答
  •  萌比男神i
    2020-11-27 05:59

    xdazz explained the issue well.

    You can use a native submit method of HTMLFormElement to work around a problem:

    HTMLFormElement.prototype.submit.call($('#form')[0]);
    

提交回复
热议问题