From 87b170a6a2f2cdab54da9859458955cfc7b8e56a Mon Sep 17 00:00:00 2001 From: pg78ac9nr <2401677463@qq.com> Date: Sat, 12 Oct 2024 16:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3.0 app.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 3.0 app.js diff --git a/3.0 app.js b/3.0 app.js new file mode 100644 index 0000000..2f0982a --- /dev/null +++ b/3.0 app.js @@ -0,0 +1,13 @@ +App({ + onLaunch: function () { + // 初始化云开发 + wx.cloud.init({ + env: 'rollcall-7gk1ko7v5ea7b3c1' // 替换为你的云开发环境ID + }); + + // 初始化全局数据 + this.globalData = { + students: [] + }; + } +}); \ No newline at end of file