Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mcloud-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcloud-sdk

mcloud sdk

  • 0.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

mcloud-sdk

云码开放SDK(H5)

Usage

引用mcloud-sdk:

CDN

<script src="//g.alicdn.com/rcfed/mcloud-sdk/0.0.8/mcloud.min.js"></script>

npm

import { goNextPage } from 'mcloud-sdk';

API

goNextPage(path)

跳转到下一个页面

Arguments
  1. path: 可选,下一个页面对应的path(从云码流程模板中获取)
  2. opt: 选项,包含以下可选参数:
名称参数类型描述
extParams额外参数Object|function额外添加到url上的参数;传入function时,函数签名为(path, query) => Object,其中path为下一跳的path,query为下一跳url上带的原始参数,返回值为Object,会以key=value的形式加在url的后面
Returns

返回Promise对象,如果没有找到下一跳地址,则会调用Promise的错误回调

Example
mcloud.goNextPage().catch(function (err) {
  console.log(err);
});

Keywords

FAQs

Package last updated on 24 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc