摘要:
1、依赖 a、jQuery b、angularjs 2、page.js文件 1 var Page = function (options) { 2 var myApp = angular.module('myApp', []); 3 myApp.controller('myCtrl', functi 阅读全文
摘要:
1:非列表类型枚举 [JsonConverter(typeof(StringEnumConverter))] public SubjectTypeEnum subject_type { get; set; } = SubjectTypeEnum.SUBJECT_TYPE_ENTERPRISE; 2: 阅读全文
摘要:
1、NuGet安装 AutoMapper、AutoMapper.Extensions.Microsoft.DependencyInjection 2、新建以下几个文件 a:IProfile 1 namespace DTO.config 2 { 3 public interface IProfile 阅读全文
摘要:
1、帮助类 1 public static class PdfHelper 2 { 3 #region 从http链接下载 4 public static void Download(string url, string name, System.Web.Mvc.Controller control 阅读全文
摘要:
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中时候,上面的方法获取的将 阅读全文