研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
连接和输入
连接和输入决定了您的块如何连接到其他块。
连接
连接定义了不同块可以连接的位置和时间。有四种不同类型的连接:
输出连接和输入连接可以连接在一起,下一个连接和上一个连接可以连接在一起。
您可以设置连接检查,进一步限制哪些连接可以连接。
此外,您还可以使用自定义渲染程序自定义连接的形状。
输入包含一系列字段,不一定包含连接。有三种不同类型的内置输入,用于处理 Blockly 的大多数用例。您还可以定义自定义输入,以支持自定义呈现。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-02。
[null,null,["最后更新时间 (UTC):2023-12-02。"],[[["Connections dictate how blocks interact, with four types: output, input, previous, and next, allowing for specific block linkages."],["Inputs are comprised of fields and may include a connection, with three built-in types for common uses and the option to create custom inputs for specialized needs."],["Connection checks and custom renderers offer further customization options for controlling block connections and appearances."]]],["Blocks connect via defined connections and inputs. Connections, including output, input, previous, and next, dictate how blocks link; output connects to input, and next to previous. Connection compatibility can be limited using connection checks. Inputs contain fields and may have connections. There are three built-in input types, with options for custom inputs and rendering. Connection shapes can also be customized.\n"]]