自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (2)
  • 收藏
  • 关注

原创 小程序云开发-设计表,操作表(增删改查)

/* 常用语法 */!!!Important: 初始化云函数wx.cloud.init();const db = wx.cloud.database();// 链接数据库wx.cloud.init();const db = wx.cloud.database();// collection为表名,以下用自定义表-user-替代1: 获取user(表名)表中数据,limit为数据返回限制,where为查询条件{字段: 字段value}db.collection('u...

2020-12-09 13:39:03 484 1

原创 uni-app 对应项目封装request请求

/* 服务器请求地址 */export const domain = 'https://******.com/';/* 添加请求头内容 */export const headers = { 'authorization': uni.getStorage({ key: 'authorization' })}/*** 接口请求基类方法* @param method 请求方法 必填* @param url 请求路径 必填* @param data 请求参数* @param

2020-06-16 11:28:35 636

原创 微信小程序-富文本解析(wxParse插件的使用)

在开发商城的小程序过程中,遇到了需要解析后台管理系统设置的富文本内容,可以使用wxParse插件解析html,或者用小程序自带的rich-text组件解析,或者可以用将富文本作为html来解析,目前先记录wxParse插件的使用。1.在github下载插件下载地址 https://github.com/icindy/wxParse/tree/master/wxParse2.下载之后将插件...

2020-04-17 17:12:00 530

原创 微信小程序-对网络请求的封装

微信小程序-对网络请求的封装/* * A JavaScript Of The WeChat Miniprogram For The Network Request * See https://www.jianshu.com/p/2e80c96ce712.html for details. * * author: cxr * * *//** *@header...

2020-04-17 16:26:00 335

原创 前端实现MD5加密

前端实现MD5加密/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * See http://pajhome.org.uk/site/legal.html for details.* Add integers, wrapping at 2^32. This uses 16-bit o...

2019-12-26 15:30:48 1862

原创 微信小程序实现文字转语音

微信小程序实现文字转语音——插件:微信同声传译代码参考代码参考/*A JavaScript For AudioContext And WechatSI , voice play注意事项:该函数需要小程序:”微信同声传译“ 插件支持,在微信公众平台-设置-第三方服务中添加此插件(Note: this function requires small program: “WeChat ...

2019-12-26 15:08:41 4100

前端MD5加密MD5.js

/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * See http://pajhome.org.uk/site/legal.html for details. * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. * 需要加密的文字或者数字作为必要参数传入: hexMD5.hexMD5(参数); (Text or Numbers that need to be encrypted are passed in as necessary parameters: hexMD5.hexMD5(params)) * author: cxr */ 参考代码

2019-12-26

AudioContext.js

微信小程序 文字转为语音(插件:微信同声传译) /* * A JavaScript For AudioContext And WechatSI , voice play * 注意事项:该函数需要小程序:”微信同声传译“ 插件支持,在微信公众平台-设置-第三方服务中添加此插件 (Note: this function requires small program: "WeChat simultaneous interpretation" plug-in support, add this plug-in in WeChat public platform-setting-third party service) * 使用注意事项: 在小程序app.json 中添加插件,在需要的页面引入js (Notes for use: add a plug-in in the small program app.json, and introduce js into the required page ) * "plugins": { "WechatSI": { // 插件名称 "version": "0.3.3", // 插件版本 "provider": "wx069ba97219f66d99" // 插件appid } } * 需要转换为语音的文字作为必要参数传入: AudioContext.AudioContext(参数); (Text that needs to be converted to speech is passed in as a necessary parameter: AudioContext.AudioContext(params)) * author: cxr */

2019-12-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除