I've follow answer from this question: How to import jquery using ES6 syntax?
I have this code:
import $ from 'jquery';
import jQuery from 'jquery';
window.$ = $;
window.jQuery = jQuery;
import 'jquery.terminal';
but got error ReferenceError: jQuery is not defined
from the plugin, how to resolve this?
我已经使用以下方法解决了该问题:
require('jquery.terminal');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.