We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OptionsManager 是一個讓你放資料的地方,奇妙的是他因為有 EventHandler 可以用,所以本身也能夠觸發監聽事件。
OptionsManager
EventHandler
他只能接收 JSON 格式的物件(Object),所以你亂丟東西他是不會收的。由於自己擁有一個 EventHandler 所以也可以綁定或是觸發事件。
另外,這兩種東西不收,
patch
key-value
setOptions
key(identifier)
value
get(key)
getOptions
get
set(key, value)
on
removeListener
pipe
unpipe
change
set
The text was updated successfully, but these errors were encountered:
No branches or pull requests
OptionsManager
是一個讓你放資料的地方,奇妙的是他因為有EventHandler
可以用,所以本身也能夠觸發監聽事件。OptionsManager 核心
他只能接收 JSON 格式的物件(Object),所以你亂丟東西他是不會收的。由於自己擁有一個
EventHandler
所以也可以綁定或是觸發事件。另外,這兩種東西不收,
方法
patch
修改 options 當中的某個key-value
setOptions
等同於patch
key(identifier)
取得對應的value
並返回OptionsManager
格式的 Objectget(key)
取得對應的key-value
並返回value
getOptions
等同於get
set(key, value)
設定一組key-value
value
傳回OptionsManager
所收到的數組(Object)on
,removeListener
,pipe
,unpipe
控制事件的方法觸發事件
change
事件,會由patch
,set
對外觸發該事件The text was updated successfully, but these errors were encountered: