会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
87的海雷
搬砖的人
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
下一页
2022年6月6日
Vue3 语法糖
摘要: <template> <div ref="node" > <node v-bind="$attrs"/> </div> </template> <script setup> //要带.vue import node from './node.vue' import { ref,reactive,ge
阅读全文
posted @ 2022-06-06 11:26 87de海雷
阅读(87)
评论(0)
推荐(0)
2021年10月18日
Vue 自动化引入模块
摘要: export default function install(Vue){ var files = require.context('./', true, /index.vue$/) files.keys().map(x=> files(x).default || files(x)).map(x=>
阅读全文
posted @ 2021-10-18 09:31 87de海雷
阅读(133)
评论(0)
推荐(0)
Vue provide/inject 使用
摘要: 父组件定义: <script> export default { // 父组件通过provide将自己的数据以对象形式传出去 provide(){ return { parentValue:"我是父组件的值啊" } } }; </script> 子孙组件接受方式: <script> export d
阅读全文
posted @ 2021-10-18 09:17 87de海雷
阅读(41)
评论(0)
推荐(0)
2021年8月26日
c# 金额转汉字
摘要: /// <summary> /// decimal 转换中文大写 /// </summary> /// <param name="val"></param> /// <returns></returns> public static string ToRMB(this decimal val) {
阅读全文
posted @ 2021-08-26 16:53 87de海雷
阅读(102)
评论(0)
推荐(0)
C# net core 实体转Url参数
摘要: public static string ToUrlParams(this object obj) { return string.Join("&", obj.GetType().GetProperties().Where(x => x.GetValue(obj)!= null).Select(x
阅读全文
posted @ 2021-08-26 15:48 87de海雷
阅读(395)
评论(0)
推荐(1)
C# net core 汉字转拼音或首字母(PinYinConverterCore)
摘要: 打开 nuget管理器 搜索 PinYinConverterCore 安装 public static class Helper {public static string ToPinYin(this string val, bool first = false) { return string.J
阅读全文
posted @ 2021-08-26 15:18 87de海雷
阅读(747)
评论(0)
推荐(1)
C# net core AutoMapper 自动映射
摘要: public static T MapTo<T>(this object obj) { return new MapperConfiguration(x => x.CreateMap(obj.GetType(), typeof(T))).CreateMapper().Map<T>(obj); }
阅读全文
posted @ 2021-08-26 09:36 87de海雷
阅读(134)
评论(0)
推荐(0)
2021年8月11日
.net5 wpf 自己写Redis一键安装小工具(附源码)
摘要: 自己写Redis一键安装小工具 下载>>解压>> 安装服务>>卸载服务 源码:下载地址
阅读全文
posted @ 2021-08-11 12:15 87de海雷
阅读(69)
评论(0)
推荐(0)
2021年8月5日
js cookie 操作
摘要: 获取 var GetCookies = () => { var n = [] document.cookie.split(';').forEach(o => { var x = o.split('='); n[x[0].trim()] = x[1] }) return n; } //调用 var c
阅读全文
posted @ 2021-08-05 11:29 87de海雷
阅读(26)
评论(0)
推荐(0)
2021年8月4日
Vue3 简单的滑块验证
摘要: <template> <div class="sliderverify"> <div class="bg" :style="`width:${ disX+40 }px;`"></div> <div ref="btn" :class="statusItem[status]"></div> </div>
阅读全文
posted @ 2021-08-04 16:28 87de海雷
阅读(895)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告