Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 1.67 KB

File metadata and controls

18 lines (14 loc) · 1.67 KB

Tomato-js Examples

包含了各种使用tomato-js的例子

Included Examples

  • umd 通过umd的方式引用tomato-js并使用
  • all-in-commonjs 通过commonjs的方式,通过入口模块一次性引入全部util
  • all-in-esm 通过esmodule的方式,通过入口模块一次性引入全部util
  • poll-with-axios 使用@tomato-js/function的poll方法配合axios实现轮询功能
  • all-in-typescript 通过typescript的方式,通过入口模块一次性引入全部util
  • split-in-commonjs 通过commonjs的方式,通过子模块按需局部引入util
  • split-in-esm 通过esmodule的方式,通过子模块按需局部引入util
  • split-in-typescript 通过typescript的方式,通过子模块按需局部引入util
  • throttle-debounce 使用@tomato-js/function的throttle和debounce方法进行防抖和节流
  • gitlab-clone 使用@tomato-js/api的Gitlab完成gitlab工程和组的clone
  • preload 使用@tomato-js/preload来完成图片的预加载