1. getAllComponentsKey
获取所有构件的key。
1.1. 参数说明:
名称 | 说明 | 类型 | 是否必填 | 示例 |
---|---|---|---|---|
无名称 | NULL | NULL | NULL | NULL |
返回值说明 | 类型 | 示例 |
---|---|---|
构件key的列表 | Array | ["c1","c2","c3"] |
1.2. 调用方式:
/**
* 获取所有构件的key
* @method getAllComponentsKey
* @return {Array} ["c1","c2","c3"]
*/
let list=viewer3D.getAllComponentsKey();
1.3. Demo示例:
示例名称 | 示例地址 |
---|---|
获取所有构件的key | 去体验 |