1. getComponentsAttributeByKey

通过构件key获取构件的属性。

1.1. 参数说明:

名称 说明 类型 是否必填 示例
key 构件key 字符串 string 或数组Array M123456或[M123456,M1234567]
callback 回调函数 函数 function function(){}
返回值说明 类型 示例
无返回值 NULL NULL

1.2. 调用方式:

/**
* 通过构件id获取构件的属性
*    @method getComponentsAttributeByKey
*    @param {string} key    构件key
*    @param {function} callback 回调函数
*    @return {void}
*/ 
viewer3D.getComponentsAttributeByKey("M123_234567",function(result)
{console.log(result)});

1.3. Demo示例:

示例名称 示例地址
获取构件信息 去体验
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2021 all right reserved,powered by Gitbook该文件修订时间: 2021-12-20 09:58:36

results matching ""

    No results matching ""