摘要:CONVERT(varchar(100), GETDATE(), 0): 11 21 2022 2:02PMCONVERT(varchar(100), GETDATE(), 1): 11/21/22CONVERT(varchar(100), GETDATE(), 2): 22.11.21CONVER 阅读全文
MVC自定义user类
2020-12-28 11:31 by 胡dot, 92 阅读, 0 推荐, 收藏, 编辑
摘要:BaseApiController.cs public class BaseApiController : ApiController { public HttpContextBase HttpContext { get { var context = new HttpContextWrapper( 阅读全文
C#拓展方法,自动映射类
2020-12-28 11:04 by 胡dot, 377 阅读, 0 推荐, 收藏, 编辑
摘要:public static class Mapper { /// <summary> /// 类型映射,默认字段名字一一对应 /// </summary> /// <typeparam name="TDestination">转化之后的model,可以理解为viewmodel</typeparam> 阅读全文
H5+APP 签字
2020-12-28 10:51 by 胡dot, 270 阅读, 0 推荐, 收藏, 编辑
摘要:function lineCanvas(obj) { this.linewidth = 5; this.color = "#8080ff"; this.background = "#ffffff"; for (var i in obj) { this[i] = obj[i]; }; this.can 阅读全文
文字高亮
2020-04-08 09:50 by 胡dot, 256 阅读, 0 推荐, 收藏, 编辑
摘要:1 /** 2 * Created by dell on 2018/2/28. 3 */ 4 (function ($) { 5 $.fn.GL = function (options) { 6 var dataop = { 7 ocolor:'red', 8 oshuru:'高亮', 9 }; 1 阅读全文
百度地图 城市中心点坐标
2017-09-25 14:55 by 胡dot, 24550 阅读, 0 推荐, 收藏, 编辑
摘要:1 121.487899486,31.24916171 上海-上海市2 100.092612914,23.8878061038 云南省-临沧市3 100.229628399,26.8753510895 云南省-丽江市4 99.1779956133,25.1204891962 云南省-保山市5 100 阅读全文