event_onbirthed_zh
Tangram edited this page Oct 16, 2015
·
1 revision
在设计时,控件被被创建并放入父控件会触发onBirthed事件。
本事件主要用于自定义控件加载自己需要的资源,如微信登录控件的onBirthed事件处理:
TangideApp.addPhoneGapPlugin('com.tangram.wechat');
TangideApp.addUserScript("http://www.i5r.com.cn/sdk/scripts/sdk.js");