ReferenceError: _ is not defined

前端 未结 3 2033
粉色の甜心
粉色の甜心 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:14

    You can install it by bower:

    Node.js npm install underscore
    Meteor.js meteor add underscore
    Require.js require(["underscore"], ...
    Bower bower install underscore
    Component component install jashkenas/underscore
    

    Here's the link to the oficial page http://underscorejs.org/

提交回复
热议问题