08 2010 档案
摘要:myFunc.call(theObj,arg1,arg2....)的作用是执行myFunc函数,其参数为arg1, arg2...,但和一般的执行有些区别,这里它重新指定了myFunc的主体对象,也就是说,原来假设myFunc是myObj的一个成员函数或者myFunc是一个全局函数,现在就让它作为theObj的一个成员函数来执行,myFunc内部的this,就指代theObjmyFunc.appl...
阅读全文
摘要:比如,采用mxml来自定义组件 CustomComponent:<?xml version="1.0" encoding="utf-8"?><mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"><mx:Button id="mybt"/></mx:Canvas>别的地方在使用此组件的时候,是可以访问...
阅读全文
摘要:You have made the most amazing component that does everything… seriously, this thing solved cancer, world hunger, and finally answered how unattractive guys end up with attractive women.However ...
阅读全文