ReferenceError: _ is not defined

前端 未结 3 2055
粉色の甜心
粉色の甜心 2020-12-14 15:04

I am using a jQuery based WordPress Twitter widget and receive the error \"ReferenceError: _ is not defined\".

Am not sure how to declare the variable \

3条回答
  •  醉酒成梦
    2020-12-14 15:26

    Your widget has Underscore.js/LoDash.js as dependency.

    You can get them here: underscore, lodash

    Try prepending this to your code, so you can see if it works:

    
    

提交回复
热议问题