美文网首页
条件判断

条件判断

作者: moly琴 | 来源:发表于2019-04-17 16:24 被阅读0次

条件判断语句

onLoad: function (options) {
        var that = this;
        if (!options) { // 20190419先判断是否存在
            return;
        }
        if (options.type) {
            this.setData({
                thisType: options.type
            })
        }
        if( options.licenseNumber) {
            that.setData({
                licenseNumber: options.licenseNumber
            })
        }
        。。。
    },

相关文章

网友评论

      本文标题:条件判断

      本文链接:https://www.haomeiwen.com/subject/mkvnwqtx.html