Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lucky-canvas

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucky-canvas

一个基于原生 js 的(大转盘抽奖 / 九宫格抽奖)插件

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.2K
decreased by-8.74%
Maintainers
1
Weekly downloads
 
Created
Source
logo

lucky-canvas 抽奖插件

一个基于 JavaScript 的 ( 大转盘 / 九宫格 ) 抽奖插件

简体中文 · English

stars forks version downloads

author license


官方文档 & Demo演示

中文https://100px.net/document/js.html

EnglishIf anyone can help translate the document, please contact me ldq404@qq.com


在 JavaScript 中使用

方式 1:通过 script 标签引入

从下面的链接里下载一个叫lucky-canvas.umd.min.js的 js 文件, 然后使用 script 标签引入

<div id="my-lucky" style="width: 300px; height: 300px"></div>
<script src="./lucky-canvas.umd.min.js"></script>
<script>

  // 大转盘抽奖
  let luckyWheel = new LuckyCanvas.LuckyWheel('#my-lucky', {
    // ...你的配置
  })
  
  // 九宫格抽奖
  let luckyGrid = new LuckyCanvas.LuckyGrid('#my-lucky', {
    // ...你的配置
  })

</script>

在 vue2.x / vue3.x 中使用

跳转:vue-luck-draw

Keywords

FAQs

Package last updated on 23 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc