-
目前直接用 tsc 生成的是 commonjs 格式的 js 文件,希望生成一下 es module 模块。
我对模块的区别也不是特别熟,找到一些相关的文档:
1. https://github.com/sunyongjian/blog/issues/37
2. https://zhuanlan.zhihu.com/p/148081795
3. https://blog.logrocket…
-
-
提供的npm包不支持webpack等模块化引用, 既然提供了npm包,为什么不把相应的依赖也require进去,真是理解不能,就是加个umd头而已,有那么难么?
-
HTML文件 :
``` html
上传视频
```
JS文件
``` js
let uptoken = sessionStorage.getItem ('upto…
-
根据你们的DEMO进行了修改,然后发现在非IE上上传是没问题的,在IE上上传的时候会弹出一个对话框“您是要打开还是保存来自upload.qiniu.com的oe315e8e?”,我点击保存打开这个文件,发现里面就只有一个key和hash,而且一直上传不了,请问这是什么原因?是否我改写的配置文件出现了问题?
`var key;
var token;
$.getScript("http://xxx.c…
-
Following is attempt to introduce Opal in my project only for a single CDN uploader module:
```rb
# app/assets/javascripts/xxx_www/shared/qiniu_uploader.js.rb
require 'opal-jquery'
require 'pl…
zw963 updated
3 years ago
-
这次测试,新增的时候,能获取到 `#{model.id}` 了。但还是有个小的问题:
当验证失败的时候,例如文章标题没有填写,依然会上传文件到oss
![image](https://user-images.githubusercontent.com/57120683/68646161-4b2fbc00-0555-11ea-9f52-48b7fd744951.png)
切换到 `…
-
PHP 7.3.24
Laravel Framework 5.8.38
composer.json
`
"require": {
"php": "^7.1.3",
"barryvdh/laravel-cors": "^1.0.4",
"beyondcode/laravel-self-diagnosis": "^1.0",
"erusev/pars…
-
Qiniu.uploader({
// 省略其他参数
browse_button: 'upload-image',
uptoken_url: 'https://www.xxx.com/image'
});
Qiniu.uploader({
// 省略其他参数
browse_button: 'upload-audio',
uptok…
ghost updated
4 years ago
-
https://github.com/qiniu/js-sdk/blob/d8b1a5815251103f3df851e6444d5ed163b447d1/src/qiniu.js#L1514
Uncaught TypeError: Cannot read property '2' of null
at o.Uploader. (qiniu.js?v=1502331960478:1…