js

package
v0.0.0-...-cdf81b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppID     string
	TimeStamp int64
	NonceStr  string
	Signature string
}

Config 返回给用户jssdk配置信息

type Js

type Js struct {
	*context.Context
}

Js struct

func NewJs

func NewJs(context *context.Context) *Js

NewJs init

func (*Js) GetConfig

func (js *Js) GetConfig(uri string) (config *Config, err error)

GetConfig 获取jssdk需要的配置参数 uri 为当前网页地址

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL