2007年8月11日星期六

in Operator

The in operator (in operator) is a new operator in ActionScript 3 that is used to see if a value exists within an object. This is similar to hasOwnProperty but will also work for inherited values.

ActionScript Code:

trace("PI" in Math); // true
trace("myProperty" in Math); // false

0 评论: