Why does jQuery throw the error `fadeOut is not a function'?

后端 未结 10 845
感情败类
感情败类 2020-12-01 17:59

I am using jQuery and put this code in my javascript:

function HideMe(itemID) {
    var myDiv = \'item_\' + itemID;
    $(myDiv).fadeOut(\"slow\");
}
         


        
10条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 18:18

    It happened to me because of slim version of Jquery library. Full version of Jquery library includes animation.

    Jquery CDN available at https://code.jquery.com/

提交回复
热议问题