TypeError: 'click' called on an object that does not implement interface HTMLElement

前端 未结 4 692

I have some javascript that sends data to a function that calls a php page, however I get an error that I can\'t find any information on. The postData() call is in the middl

4条回答
  •  [愿得一人]
    2021-01-17 21:34

    In my case was the same problem like @user3740976. I put in url an undefined parameter.

    $.ajax({
         type: requestType,
         url: url,       
         dataType: dataType,
         data: dataParams,
     ...
    

    Where dataParams is

     {"title":{},"iSBN":"111","partNumber":"3332","bookCategory":"1"}
    

    title being undefined.

提交回复
热议问题