按照老师代码实践发现scrollto undefiined
require(['jquery', 'scrollto'], function($, scrollto) {
var scroll = new scrollto.ScrollTo({
dest: 500,
speed: 2000
});
控制台报错 TypeError: scrollto is undefined
require(['jquery', 'scrollto'], function($, scrollto) {
var scroll = new scrollto.ScrollTo({
dest: 500,
speed: 2000
});
控制台报错 TypeError: scrollto is undefined
2016-03-23
举报