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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jjonline-sdk

v1.2.4

Published

锦江在线 SDK

Downloads

8

Readme

锦江在线 SDK

appLogin({ [notCallLogin], [forceLogin] })

  • 参数
    • [notCallLogin] (Boolean): 用户未登录时是否拉起登录
    • [forceLogin] (Boolean): 不论用户是否登录,拉起登录页
  • 描述: APP登录

appLogout()

  • 描述: APP登出

getUserInfo()

  • 描述: 获取用户信息

getClientInfo()

  • 描述: 获取设备信息

openMiniprogram({ miniProgramId, url })

  • 参数
    • miniProgramId (String): 小程序ID
    • url (String): 小程序路径
  • 描述: 打开微信小程序

openBrowser({ url })

  • 参数
    • url (String): 链接地址
  • 描述: 使用手机浏览器打开URL

share({ title, content, imgUrl, webUrl, [options] })

  • 参数
    • title (String): 分享标题
    • content (String): 分享描述
    • imgUrl (String): 分享图片链接
    • webUrl (String): 分享地址
    • [options.isUserMin] (Boolean): 是否使用微信小程序方式分享
    • [options.minUserName] (Boolean): 微信小程序ID
    • [options.minPath] (Boolean): 微信小程序路径
    • [options.miniprogramType] (Boolean): 微信小程序类型
      • 0: 正式版
      • 1: 测试版
      • 2: 体验版
  • 描述: app分享

setAppTitle({ title, [options] })

  • 参数
    • title (String): 标题
    • [options.suspension] (Boolean): 悬浮
    • [options.hide] (String): 控制显示隐藏
    • [options.showLeftBT] (Boolean): 是否显示左边按钮
    • [options.showRightBT] (Boolean): 是否显示右边按钮
    • [options.showRightBTImage] (Number): 是否显示右边按钮
      • 2: 分享
      • 3: 地图
      • 6: 未收藏
      • 7: 已收藏
  • 描述: 设置 webView 标题

openNewWebView({ url, [isFitWindow] })

  • 参数
    • url (String): 链接地址
    • [isFitWindow] (String): 是否需要原生appTitle
  • 描述: 打开新的 webView

closeWebView()

  • 描述: 关闭当前 webView

getLocation()

  • 描述: 获取位置信息

callPhone({ phoneNumber })

  • 参数
    • phoneNumber (String): 电话号码
  • 描述: 打电话

networkRequest({ url, body })

  • 参数
    • url (String): 请求地址
    • body (String): 请求体
  • 描述: 原生网络请求

openReactNativeView({ bundlePath, launchComponent })

  • 参数
    • bundlePath (String): 模块
    • launchComponent (String): 组件名
  • 描述: 打开 ReactNative 页面

callBridge({ routerPath, routerData })

  • 参数
    • routerPath (String): router 路径
    • routerData (String): router 所需的参数
  • 描述: Native 统一注册 Bridge

onAppBackBtn()

  • 描述: 监听 appTitle 左侧按钮点击事件

onAppRightBtn()

  • 描述: 监听 appTitle 右侧按钮点击事件

onPageShow()

  • 描述: 监听 webView 显示