🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

foreasydata

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foreasydata

EasyData for Web Utils.

npmnpm
Version
1.0.19
Version published
Weekly downloads
67
1240%
Maintainers
1
Weekly downloads
 
Created
Source

EasyData

EasyData for Web Utils.

Install

  npm i easydata //or yarn add easydata

CDN

  <script src="https://unpkg.com/foreasydata/dist/index.min.js"></script>
  <script>

  </script>

Usage

  import EasyData from 'foreasydata'
  let ez = new EasyData('模板编码')
  • init() 初始化业务模型
await ez.init()
  • add() 新增数据
await ez.add()
  • del() 删除数据
await ez.del()
  • update() 更新数据
await ez.update()
  • getList() 获取列表数据
await ez.getList()
  • getDetail(id) 获取详情
    • id:主键ID
await ez.getDetail(1)
  • initStats() 初始化统计模型
await ez.initStats()
  • getStats(params={}) 获取统计数据
    • params:查询参数
await ez.getStats({startDate:'2023-01-01',endDate:'2023-12-31'})

Keywords

EasyData

FAQs

Package last updated on 12 Mar 2024

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