06 2020 档案
摘要:1 function SetVal(field, val) { 2 var arr = field.split("."); 3 var str = arr[0]; 4 if (window[str] == undefined) { 5 window[str] = {}; 6 } 7 if (fiel
阅读全文
摘要:1、介绍 a:可用于多层iframe中,显示在最外层 b:动画效果为从点击的图片位置开始放大至全屏显示 2、效果图 3、js代码 1 function ShowMaxImg(src, y, x, w, h) { 2 var str = '<section id="ShowMaxImgBox">';
阅读全文
摘要:1 public string UploadImgByB64(string b64) 2 { 3 //access_token 需要自己获取 4 string access_token = getToken(); 5 string url = $"https://api.weixin.qq.com/
阅读全文
摘要:微信图片上传接口地址:https://api.mch.weixin.qq.com/v3/merchant/media/upload 1、上传方法 1 using HttpHandlerDemo; 2 using Newtonsoft.Json; 3 using System; 4 using Sys
阅读全文
摘要:自己用到的,记录一下 1、效果图 2、弹层组件代码 a、js代码 1 // components/dialog/index.js 2 Component({ 3 options: { 4 multipleSlots: true 5 }, 6 properties: { 7 //高度 8 height
阅读全文
摘要:搜索了好多文章,都不是自己想要的,所以在此贴下自己的解决方案,做个笔记。 1、常规需求:获取当前元素距离左边、顶部的距离 1 var x = $(div).offset().left; 2 var y = $(div).offset().top; 2、当元素处于iframe中时候,上面的方法获取的将
阅读全文

浙公网安备 33010602011771号