只有一个Object对象存在于内存中


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var obj:Object = new Object();
  2. obj.name="lzyy";
  3.  
  4. var bar = obj;
  5. bar.name="test";
  6.  
  7. trace(obj.name);
  8. //output test

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.