1.0.2 • Published 2 years ago

@lingw/pick-file v1.0.2

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

选择文件插件

说明

js 实现选择文件的功能

example

  1. 模块导入
import pickFile from "pick-file";

pickFile().then((res) => {
  console.log(res);
});
  1. script 引入
<script src="dist/pick-file.js"></script>;

pickFile
  .default({ multiple: true, accept: "image/gif,image/png" })
  .then((res) => {
    console.log(res);
  });

params

功能参数默认值
是否文件可多选multiplefalse
可选择的文件accept
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago