当前位置: 首页 > 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.tj-hxxt.cn/news/16491.html

相关文章:

  • 网站域名注册外贸网站平台都有哪些
  • 网站说服力 营销...网络推广 公司 200个网站
  • 公司做自己的网站平台台大数据精准营销的策略
  • tq网站建设百度一下移动版首页
  • 云南微网站搭建费用西安网络推广外包公司
  • 唐山网站建设冀icp备网络营销推广价格
  • 淘宝优惠券网站开发个人seo怎么赚钱
  • 个人建设门户网站 如何备案青岛快速排名
  • ckplayer 视频网站网络舆情分析报告
  • 合肥关键词排名工具seo还能赚钱吗
  • 官方网站开发制作公司百度竞价代运营托管
  • 网站模板与网站定制版的区别百度快速seo优化
  • 怎么看一个网站做的好不好樱花bt引擎
  • 宣传单页制作appseo霸屏软件
  • 漯河网站推广多少钱ue5培训机构哪家强
  • 搜索引擎网站推广可以自己做吗西安网络推广优化培训
  • 宿州网站建设多少钱关键词优化排名详细步骤
  • php做网站有哪些好处百度营销推广
  • 重庆求建网站seo软件代理
  • 网站建设制作设计优化seo网站推广
  • 哈尔滨做网站的免费html网站模板
  • 给实体店老板做的网站seo关键词排名网络公司
  • 网站建设 齐鲁软件园sem是什么设备
  • 做动效网站小红书怎么推广引流
  • 个人网站设计毕业论文知乎漳州seo网站快速排名
  • 政府网站建设目标株洲最新今日头条
  • 做化学合成的网站有哪些seo搜索优化公司
  • 做购物网站有什么要求吗哪个浏览器看黄页最快夸克浏览器
  • php和mysql做租车网站网站优化费用报价明细
  • wordpress文章采集属于seo网站优化