当前位置: 首页 > news >正文

做外贸独立网站必须要有备案么策划

做外贸独立网站必须要有备案么,策划,石家庄网站建设雨点牛,怎么把做的网站放到腾讯云里面ty.getAccountInfo 获取小程序账号信息 需引入MiniKit,且在>3.1.0版本才可使用 参数 Object object 属性类型默认值必填说明completefunction否接口调用结束的回调函数(调用成功、失败都会执行)successfunction否接口调用成功的回调函数…

ty.getAccountInfo

获取小程序账号信息

需引入MiniKit,且在>=3.1.0版本才可使用

参数

Object object

属性类型默认值必填说明
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

object.success 回调参数

参数

Object res

属性类型说明
miniProgramMiniProgramAccountInfo小程序账号信息

MiniProgramAccountInfo

PropertyTypeDescription
appIdstring小程序 ID
envVersionstring小程序版本:
develop:开发版
trail:体验版
release:正式版
versionstring版本号

object.fail 回调参数

参数

Object res

属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

函数定义示例

export type MiniProgramAccountInfo = {/** 小程序 ID */appId: string;/*** 小程序版本* develop: 开发版* trail: 体验版* release: 正式版*/envVersion: string;/** 小程序版本号 */version: string;
};
/*** 获取小程序账号信息*/
export function getAccountInfo(params?: {/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: {/** 小程序账号信息 */miniProgram: MiniProgramAccountInfo;}) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

 

ty.getAccountInfoSync

获取小程序账号信息同步方法

需引入MiniKit,且在 >=3.1.0 版本才可使用

getAccountInfo 的同步版本

返回值

属性类型说明
miniProgramMiniProgramAccountInfo小程序账号信息

MiniProgramAccountInfo

PropertyTypeDescription
appIdstring小程序 ID
envVersionstring小程序版本:
develop:开发版
trail:体验版
release:正式版
versionstring版本号

函数定义示例

export type MiniProgramAccountInfo = {/** 小程序 ID */appId: string;/*** 小程序版本* develop: 开发版* trail: 体验版* release: 正式版*/envVersion: string;/** 小程序版本号 */version: string;
};
/*** 获取小程序账号信息*/
export function getAccountInfoSync(): {/** 小程序账号信息 */miniProgram: MiniProgramAccountInfo;
};

 

ty.setBoardIcon

设置小程序看板的 icon

需引入MiniKit,且在>=3.0.3版本才可使用

参数

Object object

属性类型默认值必填说明
iconstring看板的 icon
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

函数定义示例

/*** 小程序看板的icon,小程序icon,面板icon等*/
export function setBoardIcon(params: {/** 看板的icon */icon: string;/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: null) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

ty.setBoardIconSync

设置小程序看板的 icon

需引入MiniKit,且在>=3.0.3版本才可使用

ty.setBoardIcon 的同步版本

参数

Object object

属性类型默认值必填说明
iconstring看板的 icon

函数定义示例

/*** 设置小程序看板的 icon*/
export function setBoardIconSync(params: {/** 看板的icon */icon: string;
}): null;

ty.showBoardTitleIcon

显示小程序看板中的标题和 icon

需引入MiniKit,且在>=3.0.3版本才可使用

参数

Object object

属性类型默认值必填说明
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

函数定义示例

/*** 显示小程序看板中的标题和icon*/
export function showBoardTitleIcon(params?: {/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: null) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

ty.showBoardTitleIconSync

The synchronous method used to display the title and icon of the miniapp dashboard.

Be sure to import MiniKit 3.0.3 or later.

The synchronous method of ty.showBoardTitleIcon.

Examples of function definitions

/*** Display the title and icon of the miniapp dashboard.*/
export function showBoardTitleIconSync(): null;

ty.hideBoardTitleIcon

隐藏小程序看板中的标题和 icon

需引入MiniKit,且在>=3.0.3版本才可使用

参数

Object object

属性类型默认值必填说明
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

函数定义示例

/*** 隐藏小程序看板中的标题和icon*/
export function hideBoardTitleIcon(params?: {/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: null) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

 

ty.hideBoardTitleIconSync

隐藏小程序看板中的标题和 icon 同步方法

需引入MiniKit,且在>=3.0.3版本才可使用

ty.hideBoardTitleIcon 的同步版本

函数定义示例

/*** 隐藏小程序看板中的标题和icon*/
export function hideBoardTitleIconSync(): null;

👉 立即开发。 

http://www.mmbaike.com/news/25347.html

相关文章:

  • 推广平台有哪几个快速排名优化推广手机
  • 网站备案 厦门最新新闻事件今天
  • 银行网站模板免费下载长沙百度推广开户
  • 福州企业网站建设成都专业的整站优化
  • 如何做网站结构及栏目策划百度平台客服怎么联系
  • 微博建网站英语培训机构
  • 域名申请到网站建设教程nba常规赛
  • 天津百度优化公司百度推广seo
  • 成都小程序推广企业哈尔滨企业网站seo
  • 免费开源的网站系统人工智能培训班
  • 济南做网络安全的公司seo搜索引擎优化主要做什么
  • 深圳的招聘网站哪家靠谱seo模拟点击算法
  • 重庆做网站建设企业大连百度seo
  • python做网站guthub业务网站制作
  • java手机网站开发太原seo网络优化招聘网
  • 用asp做网站的可行性分析自己建网站的详细步骤
  • 网站开发用什么服务器南宁企业官网seo
  • wordpress手机投稿春哥seo博客
  • 装潢设计用什么软件优化网站界面的工具
  • 网站建设6000元沈阳seo排名优化软件
  • 中山 网站推广优化网站技术
  • 哪有做网站的 优帮云北京学校线上教学
  • 做神马网站优化快网站信息
  • 小程序有哪些开发平台长沙seo优化
  • 2016用什么网站程序做流量建站网站
  • 建筑书店长春网站seo哪家好
  • 大淘客做网站视频怎么自己做一个网址
  • 网站建设需要的软件是什么常用的网络推广方法有
  • 佛山建设外贸网站公司吗广告设计需要学什么
  • 网站建设策划 流程图百度如何免费推广