接入指南
京东小程序接入指南
引入 SDK 并初始化
// app.js
import './sdk-v{{ book.latestVersionJingdong }}.js'
App({
onLaunch() {
...
}
})初始化 SDK
// app.js
App({
onLaunch() {
// 引入 SDK
require('./sdk-v{{ book.latestVersionJingdong }}')
let clientID = '[[client_id]]'
jd.BaaS.init(clientID)
}
})完成服务器域名配置
使用 SDK
Last updated
Was this helpful?