研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
什么是 Blockly?
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Blockly 是一个 Web 库,可让您向应用添加可自定义的基于块的代码编辑器。该编辑器使用拼图块来表示变量、逻辑表达式、循环等代码概念。这样,用户无需担心语法或命令行,即可编写程序。
进一步细分,您可以通过以下两种方式来理解 Blockly:
- 就像一个有趣的拼图界面。
- 就像一个花哨的字符串构建器。
您定义拼图连接和输入字段,然后 Blockly 会处理复杂的渲染、拖动和连接操作。
您可以定义为每个代码块生成的字符串(通常是代码),然后 Blockly 会处理连接代码块的整个字符串。您可以根据该结果采取相应措施。您可以做任何事情,从解迷到为角色添加动画,再到分析一些数据。如需查看更多示例,请参阅 Blockly 应用简介。
借助 Blockly,您可以专注于将代码块应用于您的网域,而无需担心代码块的运作方式的详细信息。如需了解详情,请参阅为何使用 Blockly。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["Blockly is a JavaScript library that empowers developers to integrate a visual, block-based programming editor into their web applications."],["This editor simplifies coding by using interlocking blocks to represent code elements, making it accessible to users with varying levels of programming experience."],["Blockly handles the visual aspects and logic of connecting blocks, allowing developers to focus on defining the functionality and behavior of their application."],["Developers can customize Blockly to generate code in various programming languages and utilize it for diverse applications like game development, data analysis, and educational tools."]]],["Blockly is a web library enabling developers to integrate a visual, block-based code editor into applications. It utilizes puzzle-piece blocks to represent code elements, allowing users to program without syntax concerns. Developers define block connections and the resulting code strings. Blockly handles rendering, dragging, and string concatenation. Developers can then use the generated code strings to create various applications like solving mazes or analyzing data, allowing focus on their application instead of block interactions.\n"]]