Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added meta to message protocol event subscription

  • Loading branch information...
commit 7a498295aa0272c34daed67993eb7690875055bd 1 parent 5961b80
Cat Chen authored September 07, 2012

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  Doraemon/Message Protocol.md
6  Doraemon/Message Protocol.md
Source Rendered
@@ -37,3 +37,9 @@
37 37
 		console.log(event.data);	
38 38
 	});
39 39
 
  40
+
  41
+扩展订阅豌豆荚事件的方式,本质上跟订阅 Atom 事件无异。豌豆荚提供的事件接口封装为类似 DOM 事件的形式,使得你无需关注资源的刷新,只需要订阅更新的事件即可。
  42
+
  43
+### 参数
  44
+
  45
+订阅事件同样可以加上参数(`meta`),同时事件在调用你的处理函数时也可能带上参数。

0 notes on commit 7a49829

Please sign in to comment.
Something went wrong with that request. Please try again.