Skip to content

zhaowhY/jigsaw

 
 

Repository files navigation

jigsaw

canvas滑动验证码

用法:

  1. 直接使用src/jigsaw.js或lib/index.js

npm i jigsaw-captcha-js -S

import jigsaw from 'jigsaw-captcha-js'

jigsaw.init({
  el: document.getElementById('container'),
  imgs: [], // 可选,默认为一张内置图片
  width: 310, // 可选, 默认310
  height: 155, // 可选, 默认155
  onSuccess: function () { ... },
  onFail: function () { ... },
  onRefresh: function () { ... }
})

About

canvas滑动验证码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.0%
  • CSS 17.7%
  • HTML 6.9%
  • Shell 2.4%