as3中的“{}”符号 [英] ' { } ' symbol in as3
本文介绍了as3中的“{}”符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好。我有点混淆'{}'的符号
有人可以向我解释如何使用这个符号
和什么这意味着什么?
例如:
var tween = TweenLite.to(demo,20,{得分:100,onUpdate:showScore})
什么是{得分:100,onUpdate:showScore}是什么意思?
及其工作原理?
谢谢..
hello. I am a bit confuse about the symbol of ' { } '
can someone please explain to me how to use this symbol
and what does it means?
example :
var tween = TweenLite.to(demo, 20, {score:100, onUpdate:showScore})
what does {score:100, onUpdate:showScore} means?
and how it works?
thank you..
推荐答案
这是一个对象文字创建一个对象,其属性为得分
(值为100
)和onUpdate
(价值showScore
)。
Object - AdobeActionScript®3(AS3)API参考 [ ^ ]
It's an object literal that creates an object with the propertiesscore
(value is100
) andonUpdate
(value isshowScore
).
Object - Adobe ActionScript® 3 (AS3 ) API Reference[^]
这篇关于as3中的“{}”符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文