This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
const lab = require('../../lib/lab');
Page({
data: {
labs: [
{ id: 'config', title: '实验准备:配置请求域名' },
{ id: 'https', title: '实验一:HTTPS' },
{ id: 'session', title: '实验二:会话' },
{ id: 'websocket', title: '实验三:WebSocket' },
{ id: 'game', title: '实验四:剪刀石头布小游戏' },
{ id: "classes", title: "进入教室"}
],
done: lab.getFinishLabs()
},
onShow() {
console.log({ done: lab.getFinishLabs() });
this.setData({ done: lab.getFinishLabs() });
clear() {
lab.clear();
}
});