Chrome/jQuery Uncaught RangeError: Maximum call stack size exceeded

前端 未结 6 689
天命终不由人
天命终不由人 2020-12-04 17:27

I am getting the error \"Uncaught RangeError: Maximum call stack size exceeded\" on chrome. here is my jQuery function

$(\'td\').click(function () {
                 


        
6条回答
  •  清歌不尽
    2020-12-04 18:00

    I recently just ran into this issue as well. I had a very large table in the dialog div. It was >15,000 rows. When the .empty() was called on the dialog div, I was getting the error above.

    I found a round-about solution where before I call cleaning the dialog box, I would remove every other row from the very large table, then call the .empty(). It seemed to have worked though. It seems that my old version of JQuery can't handle such large elements.

提交回复
热议问题