New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cust-event

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cust-event - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "cust-event",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "event.js",

@@ -16,3 +16,4 @@ # 自定义事件库

```
1. 绑定事件
## 用法说明
### 绑定事件
```js

@@ -23,3 +24,3 @@ cust.on('event-name',function(){

```
2. 触发事件
### 触发事件
```js

@@ -30,3 +31,3 @@ cust.trigger('event-name',function(){

```
3. 取消事件
### 取消事件
```js

@@ -37,3 +38,3 @@ cust.off('event-name',function(){

```
4. 只触发一次
### 只触发一次
```js

@@ -40,0 +41,0 @@ cust.one('event-name',function(){

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