标签:
toString()方法返回[object type]这样的格式,type是对象的类型;
var s:Sprite = new Sprite();
trace(s);//[object Sprite]
var m:MovieClip = new MovieClip();
trace(m);//[object MovieClip];
但是有的数据类型已经对toString()方法重载了
var a:int = new int(3);
trace(a);//3
标签:
原文地址:http://www.cnblogs.com/pmx-pmx/p/4816518.html