From e6c5b538495a4f30ea98ee66f22a816059bc7d23 Mon Sep 17 00:00:00 2001 From: pg78ac9nr <2401677463@qq.com> Date: Thu, 10 Oct 2024 12:34:15 +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 --- 2.0 app.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 2.0 app.js diff --git a/2.0 app.js b/2.0 app.js new file mode 100644 index 0000000..1bda0e8 --- /dev/null +++ b/2.0 app.js @@ -0,0 +1,13 @@ +App({ + onLaunch: function () { + // 初始化云开发 + wx.cloud.init({ + env: 'rollcall-7gk1ko7v5ea7b3c1' + }); + + // 初始化全局数据 + this.globalData = { + students: [] + }; + } +}); \ No newline at end of file