随笔分类 -  Actionscript

摘要:有时候我们需要将某个数组清空或者说重置,我最常用的办法的是重新new一下,但是有人测试研究发现使用length=0的方法,执行效率是最高的,呵呵,原文如下:_localArray.length = 0; // Reset the array to emptyYesterday I was coding on a rather large application at work and I needed to reset an array I had that was stored as a member variable. My gut instinct was to just take t. 阅读全文
posted @ 2011-09-15 11:14 dapeng888 阅读(1430) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示