大约有 45,000 项符合查询结果(耗时:0.0533秒) [XML]
程序设计里代码块较多有点卡怎么办? · App Inventor 2 中文网
...鼠标移动时拖动元素 document.onmousemove = function(e) { if (!isDragging) return; element.style.left = (e.clientX - offsetX) + 'px'; element.style.top = (e.clientY - offsetY) + 'px'; }; // 鼠标释放时停止拖动 document.onmouseup = function(...
App Inventor 2 获取启动值与Screen传值教程 · App Inventor 2 中文网
...
when Screen2.Initialize() {
global 收到的数据 = getStartValue()
if (收到的数据 != "") {
标签_显示.Text = join("收到:", 收到的数据)
} else {
标签_显示.Text = "没有收到数据"
}
}
传递复杂数据
可以传递列表、字典...
App Inventor 2 网络微数据库后台搭建教程 - 自建TinyWebDB服务 · App Inventor 2 中文网
...鼠标移动时拖动元素 document.onmousemove = function(e) { if (!isDragging) return; element.style.left = (e.clientX - offsetX) + 'px'; element.style.top = (e.clientY - offsetY) + 'px'; }; // 鼠标释放时停止拖动 document.onmouseup = function(...
App Inventor 2 语音合成与语音唤醒教程 · App Inventor 2 中文网
...) {
标签_状态.Text = "✅ 朗读完成"
// 可以继续下一段
if 还有下一段 {
文本朗读器1.Speak(下一段文本)
}
}
选择TTS引擎
when Screen1.Initialize() {
var 引擎列表 = 文本朗读器1.AvailableLanguages
Spinner_引擎.Elements =...
Arduino 101 实验07 - 接近传感器,做一个非接触开关 · App Inventor 2 中文网
...1.ProximityReceived(proximity) {
标签_距离.Text = round(proximity)
if proximity > 阈值 and not 已触发 {
global 已触发 = true
global 次数 = 次数 + 1
标签_触发.Text = "检测到!"
标签_触发.TextColor = "&HFF43A047"
标签_次数.Text = join("触发次...
Arduino 101 实验10 - 舵机角度控制 · App Inventor 2 中文网
...}
when 计时器1.Timer() {
global 当前角 = 当前角 + 方向 * 5
if 当前角 >= 180 {
global 当前角 = 180
global 方向 = -1
} else if 当前角
你好世界 · App Inventor 2 中文网
...依赖已经停用的在线翻译服务。
连接你的应用
通过 WiFi 连接设备
使用 AI 伴侣连接后,可以在手机或平板上实时查看和测试应用。
视频演示:
安装 AI 伴侣
使用手机系统扫码器或浏览器扫描二维码,下载并安装 AI 伴侣...
我的待办清单 · App Inventor 2 中文网
...然变了,屏幕却不会马上更新。
when 按钮_添加.Click() {
if isempty(文本输入框_任务.Text) {
标签_计数.Text = "先输入一项任务"
} else {
listadd(待办事项, 文本输入框_任务.Text)
微数据库1.StoreValue("任务", 待办事项)
文本输...
投票App · App Inventor 2 中文网
...成票 = []
global 反对票 = []
procedure 更新票数(tag, value) {
if tag = "yes" {
赞成票 = value
} else if tag = "no" {
反对票 = value
}
标签_是.Text = join("赞成:", length(赞成票))
标签_否.Text = join("反对:", length(反对票))
}
when Screen1.Initia...
语音计算器 · App Inventor 2 中文网
...ts 包含 +、add、sum、plus;subtractionIntents 包含 -、subtract、difference、minus;divisionIntents 包含 /、÷、divide、quotient、ratio。
13. 扩展 AfterGettingText
把处理结果的 if then else if 链扩展为四种情况:乘法用乘积,加法用和,减法用差...
