getting this error “ $.toJSON is not a function ”

后端 未结 5 771
温柔的废话
温柔的废话 2020-12-16 11:22

I\'m trying to use jQuery and Ajax and I use this method. but I get the error $.toJSON is not a function in my firebug . where is the problem? I use jquery 1.3.2 . thanks

5条回答
  •  无人及你
    2020-12-16 11:36

    That's correct.

    There is no $.toJSON() function: http://api.jquery.com/jQuery.toJSON. Perhaps you want to use JSON.stringify() instead.

提交回复
热议问题