jQuery is not defined

jQuery is not defined

xiaovxiaov Posts: 2Questions: 2Answers: 0

I've already quoted "jquery.js" , but I still can't use plug-ins.
this is my code:
require('jquery/dist/jquery.js');
require('echarts/map/js/china.js');
require('datatables/media/css/jquery.dataTables.css');
require('datatables/media/js/jquery.dataTables.js');
require('jquery/dist/jquery.min.js');
require('datatables.net-plugins/sorting/ip-address.js');

Then I can use "$";

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Duplicate of this thread, please post just once.

This discussion has been closed.