@cloudbase/adapter-qq_mp
v0.2.0
Published
qq miniprogram adapter of cloudbase javascript SDK
Downloads
7
Maintainers
Keywords
Readme
@cloudbase/adapter-qq_mp
tcb-js-sdk QQ小程序适配器
安装
npm i @cloudbase/adapter-qq_mp -S
使用
ES Module
import tcb from 'tsb-js-sdk';
import adapter from '@cloudbase/adapter-qq_mp';
// 以下两种方式二选一
// 1.单参数传入
tcb.useAdapters(adapter);
// 2.数组形式传参
tcb.useAdapters([adapter]);
// adapter必须在init之前传入
tcb.init();
CommonJS
const tcb = require('tsb-js-sdk');
const {adapter} = require('@cloudbase/adapter-qq_mp');
// 以下两种方式二选一
// 1.单参数传入
tcb.useAdapters(adapter);
// 2.数组形式传参
tcb.useAdapters([adapter]);
// adapter必须在init之前传入
tcb.init();