as3中的“{}”符号 [英] ' { } ' symbol in as3

查看:105
本文介绍了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 - Adob​​eActionScript®3(AS3)API参考 [ ^ ]
It's an object literal that creates an object with the properties score (value is 100) and onUpdate (value is showScore).

Object - Adobe ActionScript® 3 (AS3 ) API Reference[^]


这篇关于as3中的“{}”符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆