Autodesk.Viewing.Viewer3D.search() 具有精确值

Autodesk.Viewing.Viewer3D.search() with exact value

有什么语法可以让我搜索精确值吗? ( Autodesk.Viewing.Viewer3D.search())

我有一个具有属性的组件

属性名称:"Level"

显示值:"Level 1"

和另一个组件

属性名称:"Level"

显示值:"Level 2"

当我搜索时

  model.search("Level 1", function (idArray) {
        Array.prototype.push.apply(dbIdArrayResult, idArray);
    }, function () { }, [attributeName]);

它将 return 这两个组件。我希望搜索结果与值完全匹配。

请使用引号并在末尾添加 space,这将强制完全匹配。

"Level "