03 2021 档案
摘要:function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i') var r = window.location.search.substr(1).match(reg) if (r
阅读全文
摘要:web前端工程师需要掌握的技能 一、基础 1、H5标签 1.1、H5引进的一些新的标签,需要注意article、header、footer、aside、nav以及HTML的标题结构 1.2、理解浏览器解析HTML的过程,理解DOM的树形结构,及相应API 1.3、理解HTML标签在各个浏览器上的默认
阅读全文
摘要:wx.cloud.uploadFile({ cloudPath:new Date().getTime()+'.png', // 上传至云端的文件名称 filePath: fileURL, // fileURL为小程序临时文件路径 success: res => { // 返回文件 ID consol
阅读全文
摘要:根据文件的File ID 删除文件: wx.cloud.deleteFile( { fileList:[e.currentTarget.dataset.url], success(){ wx.showToast({title: '删除成功',}) }, fail(){ wx.showToast({t
阅读全文
摘要://初始化云端数据库 const db = wx.cloud.database() // 引用云端集合 const Users = db.collection('Users') //Users为云端集合的名称 查询所有数据: Users.get().then(res=>{ console.log(r
阅读全文
摘要:/** * 微信支付结果通知 */ @Component @RequestMapping("/地址1/") public class WechatPayNativeResultAction { protected transient Logger logger = Logger.getLogger(
阅读全文
摘要:右侧和底部阴影: box-shadow:2px 2px 5px #999999; 四周阴影: box-shadow: #0F9BE3 0px 0px 10px; div盒子悬浮于其他div之上: position: absolute; 将div固定在页面顶部并始终在页面最上层: position:f
阅读全文