研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >isDraggable
isDraggable() 函数
返回指定对象是否可 ID。
Signature:
export declare function isDraggable(obj: any): obj is IDraggable;
参数
返回:
obj 为 IDraggable
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["The `isDraggable()` function determines if a given object implements the `IDraggable` interface."],["It accepts any object as input (`obj`) and returns a boolean indicating whether the object is draggable."],["If the object is draggable, it is treated as an `IDraggable` type within the function's scope."]]],["The `isDraggable()` function determines if an object is of the `IDraggable` type. It accepts a single parameter, `obj` of any type, and returns a boolean indicating whether `obj` conforms to the `IDraggable` interface. The function's core purpose is to check the object's type against `IDraggable`. It is declared as an exported function.\n"]]