Giter VIP home page Giter VIP logo

Comments (20)

rockuw avatar rockuw commented on May 9, 2024

我们使用browserify,参考:https://github.com/ali-sdk/ali-oss#browser-usage

from ali-oss.

rockuw avatar rockuw commented on May 9, 2024

webpack我没有用过,可能是会有一些问题需要解决。

script标签引入有什么问题吗?

from ali-oss.

rockuw avatar rockuw commented on May 9, 2024

那只能去研究一下webpack了

from ali-oss.

rockuw avatar rockuw commented on May 9, 2024

不分开是不想重复,参考aws的js sdk。你的问题是和webpack一起使用的问题,而不是分不分开的问题。

from ali-oss.

rockuw avatar rockuw commented on May 9, 2024

浏览器端不会使用fs,你报错只是你的用法不对。

如果webpack是很多用户的诉求,我们当然会提供支持。

from ali-oss.

rockuw avatar rockuw commented on May 9, 2024

你可以参考一下issue的平均解决时间:)

from ali-oss.

rockuw avatar rockuw commented on May 9, 2024

什么叫“直接ie10+”?

from ali-oss.

simplefeel avatar simplefeel commented on May 9, 2024

我们项目中也是使用webpack进行打包的,遇到的问题和上面的同学遇到的差不多,ossjavascript包能否在webapck下运行,如果可以的话是否可以出个脚手架工程?

from ali-oss.

simplefeel avatar simplefeel commented on May 9, 2024

补充一下,我们使用react+webpack

from ali-oss.

tolerious avatar tolerious commented on May 9, 2024

同问啊。

from ali-oss.

suhaotian avatar suhaotian commented on May 9, 2024

@tolerious 上传可以参考文档那个直传的例子,没必要非要用 SDK

from ali-oss.

tolerious avatar tolerious commented on May 9, 2024

@suhaotian 是的,通过标签直接传是可以的, 现在我的场景是发起请求的部分在我的Vue组件内,我的Vue组件是通过Webpack打包的,直接用<script>标签引入,我在Vue的组件内无法使用的呢。

from ali-oss.

suhaotian avatar suhaotian commented on May 9, 2024

可以通过 script 全局引入,虽然有点丑

from ali-oss.

tolerious avatar tolerious commented on May 9, 2024

@suhaotian 通过script标签引入的,在Vue单文件组件中可以使用?

我在Vue单文件组件中使用报错的咯。

from ali-oss.

suhaotian avatar suhaotian commented on May 9, 2024

const plupload = plupload

from ali-oss.

tolerious avatar tolerious commented on May 9, 2024

啥?

from ali-oss.

suhaotian avatar suhaotian commented on May 9, 2024

我加你 qq 吧

from ali-oss.

tolerious avatar tolerious commented on May 9, 2024

@suhaotian 390549824

from ali-oss.

suhaotian avatar suhaotian commented on May 9, 2024

@tolerious 报 undefined 的错?

from ali-oss.

suhaotian avatar suhaotian commented on May 9, 2024

@tolerious 如果是报 undefined 你声明下,const xx = xx

from ali-oss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.