当前位置:网站首页>Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
2022-07-04 05:09:00 【gaoshanpingyuan】
This is an online applet , Open the applet , Search for “ Primary school students must recite poems ”, Click the poem answer button : Single topic selection 、 Judgment questions , Enter the page , The first thing I see is the first question , So the first question is particularly important , Now let's take a look at how the first question is displayed on the interface .
The applet runs first onLond function , Call a function to get data and display .
This data acquisition and display function is written , There are two cases of retrieving and using data . The first is the first question , Because the data is placed in the cloud database , No data locally , So first call the load data countdown and progress bar functions , Avoid long loading time , Interface blank . Then use cloud functions to obtain cloud data , Assign the obtained cloud data to data In the empty array declared in , adopt setData Assignment displays the title and options of the first question on the interface . The second is to show other questions besides the first one , After the first question is displayed , The local array already has data , At this time, it is no longer necessary to call cloud functions to obtain cloud data , At this time, there is no need to call the load data countdown and progress bar functions , Directly pass the data in the local array setData Assignment displays the title and options of the question on the interface . Here's an explanation , The title begins with the first question , Array index from 0 Start , The index of the array stored in question 1 is 0. No more explanation , Look at the code .

Applet search “ Primary school students must recite poems ”, You can experience . Contact the source code :qq 3570340763
Sweep code experience

边栏推荐
- 【MATLAB】MATLAB 仿真数字带通传输系统 — QPSK 和 OQPSK 系统
- Binary search tree
- Annex 4: scoring criteria of the attacker docx
- 【MATLAB】MATLAB 仿真数字基带传输系统 — 双极性基带信号(余弦滚降成形脉冲)的眼图
- Character types of C language
- Secondary vocational group network security - memory Forensics
- [matlab] matlab simulation - low pass Gaussian white noise
- Just do it with your hands 7 - * project construction details 2 - hook configuration
- Zhongke Panyun - data analysis and forensics packet flag
- Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)
猜你喜欢

Simulated small root pile

Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..

2022 t elevator repair operation certificate examination question bank and simulation examination

电子元器件商城与数据手册下载网站汇总

Automated testing selenium foundation -- webdriverapi

中科磐云—2022广东木马信息获取解析

Utiliser des unités de mesure dans votre code pour une vie meilleure

2022危险化学品经营单位安全管理人员上岗证题库及答案

2022广东省赛——编码信息获取 解析flag

Graduation design of small programs -- small programs of food and recipes
随机推荐
Zhongke panyun-d module analysis and scoring standard
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Trie number dictionary tree
[matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (class I part response waveform)
Li Kou's 300th weekly match
2022年T电梯修理操作证考试题库及模拟考试
【MATLAB】通信信号调制通用函数 — 窄带高斯白噪声的生成
laravel 中获取刚刚插入的记录的id
Remote desktop client RDP
Network equipment emergency response Guide
Simulink与Arduino串口通信
Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
【MATLAB】MATLAB 仿真数字基带传输系统 — 数字基带传输系统
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
在代碼中使用度量單比特,從而生活更美好
Secondary vocational group network security - memory Forensics
TCP state transition diagram
【QT】定时器
Binary search tree
[paper summary] zero shot semantic segmentation