zoukankan      html  css  js  c++  java
  • 定义字典,调用接口

    1 API参数类型字典      2 self.render加载页面时,传入List参数,方便html页面使用

    1 API参数类型字典

    return App.remote('/system/dict/ApiParamType/dictitem/root/direct-children/');

     

    dictoCode自己定义的    dictItemCode是root

    数据库如下

    data: function () {
    this.svcId = this.getParam('svcId');
    this.versionId = this.getParam('id');
    this.status = this.getParam('status');
    return App.remote('/system/dict/ApiParamType/dictitem/root/direct-children/');
    },
    dataFilter:function(err, data)
    {
    this.apiType=data;
    return {status:this.status};

    },

     2 self.render加载页面时,传入List参数,方便html页面使用

  • 相关阅读:
    20210131
    20210130
    20210129
    20210128
    20210127
    例3-7
    例3-5
    例3-4
    例3-3
    例3-2
  • 原文地址:https://www.cnblogs.com/myfrank/p/8143050.html
Copyright © 2011-2022 走看看