npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ejsv3

v3.5.0-a

Published

ejs 3.x,一套混合开发方案

Readme

ejs

一个混合APP开发方案,包括架构思路,前端源码,系列API文档教程等。

更新记录

文档变更记录

20190625

更新3.2.6c版本

  • ui
    • ejs.ui.select
      • 支持H5端调用

20190614

更新3.2.6a版本

  • util
    • ejs.util.encrypt
      • 支持H5端调用

20190528

更新文档

  • runtime
    • ejs.runtime.openSetting
      • 补充打开系统设置界面说明

20190524

更新文档

  • io
    • ejs.io.screenShot
      • 补充截屏API返回参数说明
  • util
    • ejs.util.recognizeQRCode
      • 补充识别二维码API支持网络图片的EJS组件版本说明

20190505

更新文档

  • auth
    • ejs.auth.getToken
      • 修改文档错误,返回值token修改为 access_token
    • ejs.auth.refreshToken
      • 更新文档说明
  • navigator
    • 新增导航栏颜色修改说明
    • 新增导航栏下划线显隐说明

20190327

更新文档

  • ejs.util.recordVideoAPI 最大录制视频时长改为20秒

20190227

更新3.2.6版本

  • storage.setItem 总存储数据超过 1kb 会报错情况给予解决方案说明

  • 增加 card.setContentHeight API, 可设置卡片高度

20190214

更新3.2.6版本

  • util.createQRCode 新增参数 size 来设置二维码生成的大小

20190131

更新3.2.5a版本

  • 增加 io.screenShot API,支持截屏

20190117

更新3.2.4版本

  • 增加 auth.getAuthCode 在需要鉴权的项目组获取用户授权码

20190115

  • 增加 鉴权API 说明

20180929

更新3.2.2版本

  • 增加 navigator.setSearchBar API,设置原生搜索栏

20180918

更新3.2.1版本

  • 增加 runtime.getPluginVersion API,支持获取组件版本号

20180917

  • 增加 auth.getUserInfo API文档

20180809

更新3.2.0版本

  • 增加 util.invokePluginApi,支持调用原生组件,选人API ejs.contact.choose 不推荐使用(未来某个版本可能会移除此 API)

20180723

  • 增加 navigator.setSearchWordnavigator.getSearchWord,支持设置搜索页搜索关键字,与获取搜索页搜索关键字

  • 增加 runtime.getPlatformUrl 支持获取中间平台地址

20180705

  • 增加 util.createQRCodeutil.recognizeQRCode,支持生成二维码与解析二维码

20180622

  • page.openLocal 中添加了常见类名

20180615

  • 增加 io.getFileSize,支持查看本地文件大小

20180611

  • 更新 ejs demo 页面,提供容器,可以查看 ejs.card 效果

20180503

  • 版本更新3.1.6

    • 增加 ejs.card api,支持卡片页面

    • 增加 runtime.openSetting,支持打开系统设置

    • 增加当 ejs api 因容器版本号不匹配调用失败给予提示

20180313

  • 版本更新3.1.5

    • 增加device.checkPermissionsdevice.requestPermissions,可以检查权限是否开启,以及主动申请开启权限

20180208

  • 版本更新3.1.4

    • 增加runtime.logPanel,支持调试面板打印信息

20180125

  • 版本更新3.1.3

    • device中增加摇一摇功能

20171215

  • 版本更新3.1.2(同步原生版本)

    • 新增audio模块io模块recordVideoisApplicationExist等API

    • 修复popwindow传参以及返回错误问题

20171128

20171114

20171023

  • 修改auth.getToken,变为只有ejs环境才能获取

  • 全部已规划的H5DD环境下的API移植完毕

  • configreadyDD环境中兼容成DD对应的API

  • 全部前端代码使用ES6语法重构,airbnb代码规范,mocha单元测试,核心代码覆盖率100%

20170919

  • 重新对应API,修改一部分细节

  • 增加setBouncesetZoomControl

  • 去除open中原有的回弹,缩放控件相关配置

20170905

  • 重新梳理文档,内部修正,部分API有改动,新增部分API

20170901

  • 修改 navigator模块setTitle新增子标题和点击事件,并修改参数名称,setLeftBtn新增下拉箭头配置

20170804

  • 优化 EJS API 支持相对路径(如prevImagesetRightBtn等)

20170728

20170727

20170721

20170720

20170719

20170628

  • EJS文档骨架