🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

sp-common-data

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sp-common-data

sp-common-data

npmnpm
Version
1.0.22
Version published
Weekly downloads
8
-27.27%
Maintainers
1
Weekly downloads
 
Created
Source

通用数据管理说明

  • 获取字典列表或者字典树(api/index)
    • 方法名:_getDic(options = {})
    • 参数
      • {Object} options
      • {String} options.code 字典编码
      • {Boolean} options.isTree = false 返回树形数据
      • {String} options.parentId = -1 父级id
      • {String} options.url 接口地址
    • 返回:Promise
    • 例如:
        _getDic({
        code: 'sylx',
        isTree: true,
        parentId: -1,
        url: '/api_data/dic'
      })
      

FAQs

Package last updated on 23 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts