Nodejs jQuery needs jsdom

后端 未结 5 1085
执笔经年
执笔经年 2021-01-12 17:13
$.getJSON(\'https://api.twitch.tv/kraken/channels/\' + SLoppierKitty7, function(channel) {

if (channel[\"stream\"] == null) { 
    var live =\"no\"

} else {

              


        
5条回答
  •  隐瞒了意图╮
    2021-01-12 17:49

    I encountered the same problem, and it is OK now after I changed the package from require('jQuery') to require('jquery'). It seems that the later package (jquery) use a more recent version of jQuery than the former one (jQuery).

提交回复
热议问题