Skip to content

chaostack/cloudbase-adapter-wx_game

Repository files navigation

cloudbase-adapter-wx_game

NPM Version

tcb-js-sdk微信小游戏适配器

安装

npm

npm i cloudbase-adapter-wx_game -S

Unpkg(推荐)

可以使用unpkg托管的js文件,地址如下: https://unpkg.com/cloudbase-adapter-wx_game/dist/index.js

使用

ES Module

import tcb from 'tcb-js-sdk';
import adapter from 'cloudbase-adapter-wx_game';

// 以下两种方式二选一
// 1.单参数传入
tcb.useAdapters(adapter);
// 2.数组形式传参
tcb.useAdapters([adapter]);
// adapter必须在init之前传入
tcb.init();

CommonJS

const tcb = require('tcb-js-sdk');
const {adapter} = require('cloudbase-adapter-wx_game');

// 以下两种方式二选一
// 1.单参数传入
tcb.useAdapters(adapter);
// 2.数组形式传参
tcb.useAdapters([adapter]);
// adapter必须在init之前传入
tcb.init();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published