我正在使用用户界面并尝试实施a=str2double(get(handles.InputA,'string'));
b=str2double(get(handles.InputB,'string'));
c=str2double(get(handles.InputC,'string'));
xLine=[(-b)/2*a-5:0.01:(-b)/2*a+5];
yToPlot= a*x.^2 + b.x+c;
plot(xLine,yToPlot);
以及scrollmagic
我首先在加载时实现了GSAP
动画,对我来说就像魅力一样,但当我尝试使用GSAP
实现GSAP
我在控制台中收到此错误。
未捕获的ReferenceError:未定义ScrollMagic
有关详细信息,我在Scrollmagic
文件
package.json
然后将其导入"dependencies": {
"gsap": "^1.20.4",
"scrollmagic": "^2.0.5"
}
app.js
然后在我的/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('gsap');
require('scrollmagic');
require('./custom');
/*window.Vue = require('vue');*/
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
/*Vue.component('example-component', require('./components/ExampleComponent.vue'));
const app = new Vue({
el: '#app'
});*/
home.blade.php
我们将不胜感激。
谢谢:)
答案 0 :(得分:0)
尝试
global.ScrollMagic = require('scrollmagic');