浏览代码

Add $event to README

Caleb Porzio 5 年之前
父节点
当前提交
cf3a6a6a67
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -108,9 +108,11 @@ And 4 magic properties:
 | --- |
 | [`$el`](#el) |
 | [`$refs`](#refs) |
+| [`$event`](#event) |
 | [`$dispatch`](#dispatch) |
 | [`$nextTick`](#nexttick) |
 
+
 ### Directives
 
 ---
@@ -416,6 +418,16 @@ These behave exactly like VueJs's transition directives, except they have differ
 
 ---
 
+### `$event`
+**Example:**
+```html
+<input x-on:input="alert($event.target.value)">
+```
+
+`$event` is a magic property that can be used within an event listener to retrieve the native browser "Event" object.
+
+---
+
 ### `$dispatch`
 **Example:**
 ```html