Closed gotoin closed 7 years ago
自己解决了 IScroll-zoom.js最底下改成
if (typeof define == 'function' && define.amd) { define(function() { return IScroll; }); } else if ( typeof module != 'undefined' && module.exports ) { module.exports = IScroll; } else { window.IScroll = IScroll; }
require.config({
paths: {
'iscroll': 'iscroll-zoom',
},
shim: {
'iscroll': {
exports: 'IScroll'
}
}
});
require加载 PhotoClip.js?v=201601250001:247 Uncaught TypeError: IScroll is not a constructor