js 阿里云OSS直传 报错OSS is not defind
js 使用阿里云直传
var client = new OSS.Wrapper({
region: host,
accessKeyId: key,
accessKeySecret: Secret,
bucket: bucket
});时报错 OSS is not defind
在本地测试没有任何问题,但是放到阿里云的服务器上会爆上述错误。
如果把new 改成window 又会爆Uncaught TypeError: Cannot read property 'Wrapper' of undefined
求各位大神给个解决方案