Uncaught TypeError: Cannot read property 'ownerDocument' of undefined

前端 未结 6 1207
生来不讨喜
生来不讨喜 2020-12-29 01:57

I\'m teaching myself AJAX to AJAXify my site. In my template, I have the following JS code to get some JSON data from a view then append the data to a div.

f         


        
6条回答
  •  执笔经年
    2020-12-29 02:35

    I had a similar issue. I was using jQuery.map but I forgot to use jQuery.map(...).get() at the end to work with a normal array.

提交回复
热议问题