How to properly cache DOM element in jquery?

前端 未结 2 1439
陌清茗
陌清茗 2021-01-15 13:19

I am having some trouble accessing cached DOM element from the namespace variable. My FeedManager config variable is like this:

var FeedManager = {
    confi         


        
2条回答
  •  借酒劲吻你
    2021-01-15 13:30

    You'd need to make sure the $('#feedContainer') has already been loaded.

    An analogous example:

    
    

提交回复
热议问题