LayaAir的Ts和Js与Creator的Ts和Js获取属性的方法,Enum枚举,dataSource组件综合赋值,box容器复杂赋值[子对象的属性名的geChildByName],clip切片动画

//****************************************** LayaAlir **//
//
//1LayaAlir Ts获取属性的值
//

constructor() {
super();
/** @prop {name:intType, tips:“整数类型示例”, type:Int, default:1000}/
public intType: number = 1000;
/** @prop {name:numType, tips:“数字类型示例”, type:Number, default:1000}
/
public numType: number = 1000;
/** @prop {name:strType, tips:“字符串类型示例”, type:String, default:“hello laya”}/
public strType: string = “hello laya”;
/** @prop {name:boolType, tips:“布尔类型示例”, type:Bool, default:true}
/
public bo

你可能感兴趣的:(TypeScript,CocosCreator,Laya)