国际IT认证考试题库小程序

这是一个关于小程序的功能介绍,该小程序专注于国际IT认证考试的错题管理。用户可以收藏各领域的错题,如Blockchain、Apple认证、VMware、项目管理等,并进行复习。代码示例展示了获取下一题、上一题、保存、添加和删除错题的功能,帮助用户高效备考。
摘要由CSDN通过智能技术生成

收藏一个有用的小程序,只有国际it认证,涵盖各子领域,包括但不限于:

Blockchain CBSA Apple Mac Service Certification VMware (V7)Cloud Management and Automation Splunk Enterprise Certified Admin PMI PMP PRINCE2 PRINCE2 Foundation PRINCE2 Practitioner CISCO CCNA(200-301) CompTIA Security+(sy0-601) ISACA CISA CISM CRISC Amazone Solutions Architect Associate Solutions Architect Professional Google Cloud security engineer Associate cloud engineer google-analytics professional-cloud-devops-engineer Professional data engineer professional-machine-learning-engineer NI CLAD ISC2 CISSP

英文原题+中文机翻

可提题库收录申请

代码示例:错题库

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

var wrongs = [];

var app = getApp();

exports.getNext = function(index) {

  var category = app.getCategory();

  for (var i = index; i < 1000++i) {

    var problem = wx.getStorageSync("wrong_prob_" + category._id + '_' + i);

    if (problem) {

      problem = JSON.parse(problem);

      if (!problem._id) continue;

      return { index: i, problem: problem };

    } else {

      return null;

    }

  }

}

exports.getPrev = function(index) {

  var category = app.getCategory();

  for (var i = index; i > 0--i) {

    var problem = wx.getStorageSync("wrong_prob_"+ category._id + '_' + i);

    if (problem) {

      problem = JSON.parse(problem);

      if (!problem._id) continue;

      return { index: i, problem: problem };

    } else {

      return null;

    }

  }

}

exports.save = function() {

}

exports.add = function(problem) {

  var category = app.getCategory();

  wx.getStorage({

    key: 'wrong_cnt_' + category._id,

    success: function(res) {

      var cnt = parseInt(res.data) + 1;

      wx.setStorage({

        key: "wrong_prob_"+ category._id + '_' + cnt,

        data: JSON.stringify(problem)

      });

      wx.setStorage({

        key: "wrong_cnt_"+ category._id,

        data: cnt.toString()

      });

    },

    fail: function() {

      wx.setStorage({

        key: "wrong_prob_"+ category._id + '_1',

        data: JSON.stringify(problem)

      });

      wx.setStorage({

        key: "wrong_cnt_"+ category._id,

        data: '1'

      });

    }

  });

}

exports.del = function(index) {

  var category = app.getCategory();

  wx.setStorage({

    key: "wrong_prob_"+ category._id + '_' + index,

    data: '{}'

  })

  wx.showToast({

    title: '移除题目成功',

    icon: 'success',

    duration: 700

  })

}

​​​​​​​

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值