大约有 49,000 项符合查询结果(耗时:0.0503秒) [XML]
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 =...
你好世界 · 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 绘图之画布画弧(DrawArc)函数的用法 · 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(...
游戏中的算法与计算思维 01:画布坐标映射到卡片 · App Inventor 2 中文网
...宽,(行 + 0.5) * 高)
}
}
when 画布1.Touched(x, y, touchedAnySprite) {
if x >= 0 and y >= 0 and x < 画布1.Width and y < 画布1.Height {
var i = floor(y / 高) * 4 + floor(x / 宽) + 1
if i
游戏中的算法与计算思维 04:第一张、第二张与匹配状态 · App Inventor 2 中文网
...宽,(行 + 0.5) * 高)
}
}
when 画布1.Touched(x, y, touchedAnySprite) {
if x >= 0 and y >= 0 and x < 画布1.Width and y < 画布1.Height {
var i = floor(y / 高) * 4 + floor(x / 宽) + 1
if i
游戏中的算法与计算思维 07:按难度保存最佳成绩 · App Inventor 2 中文网
...宽,(行 + 0.5) * 高)
}
}
when 画布1.Touched(x, y, touchedAnySprite) {
if x >= 0 and y >= 0 and x < 画布1.Width and y < 画布1.Height {
var i = floor(y / 高) * 4 + floor(x / 宽) + 1
if i
