我正在使用包裹,偶然发现我使用了Jelly.js,并试图按指示导入
import $ from "jquery";
import 'jquery-scrollify';
import { Jelly } from 'jelly.js';
$(function(){
var options = {
paths: '#circle-path', // Shape we want to draw
pointsNumber: 25, // Number of points
maxDistance: 4, // Max distance among points
color: '#ff0019',
opacity: 0.27,
// centroid: '.centroid-text' // Element to move accordingly with the centroid of the shape
// debug: true // Uncomment this to see the points
};
/* Initializing jelly */
var jelly = new Jelly('.jelly-canvas', options);
});但它让我犯了这个错误
未定义的ReferenceError:没有定义果冻
有什么想法吗?
发布于 2019-08-23 04:03:05
这是因为元素.jelly-canvas根本不存在,而且
import { Jelly } from 'jelly.js';应该是
import Jelly from 'jelly.js';https://stackoverflow.com/questions/57603815
复制相似问题