摘要:
NET8下生成二维码 按网上搜索的总是多少有些问题,得总搜索好几次才能解决的,现把自己用过的可以生成的代码放上来,以备后用 2024年02月20日在 VS2022,NET8,MVC 项目上使用通过 引入NUGET:ZXing.Net.Bindings.ZKWeb.System.Drawing 控制器 阅读全文
摘要:
NET 7 中使用Session 2024年2月11日 net7下测试通过 Program.cs关键代码: builder.Services.AddDistributedMemoryCache(); builder.Services.AddSession(options => { options.I 阅读全文
摘要:
微信支付V2 统一下单 .NET CORE 一个小功能总是拖拖拖。。唉。。。今天2024年01月15日终于调成功了,以下是代码,能取到预支付订单号就行了。。 /// <summary> /// 微信支付-微信小程序 /// </summary> /// <returns></returns> [Ht 阅读全文
摘要:
uni app 上拉加载下拉刷新代码 先记下来,以后备用 <template> <view class="app"> <u-row> <u-col span="4"> <!-- <mix-list-cell :title="category.caname" @onClick="show=true"> 阅读全文
摘要:
js中用canvas生成固定长宽的图片 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1. 阅读全文
摘要:
Linq To Sql 简记 用于以前的.net framework 引用System.Data.Linq 创建数据库对应的实体类 using System; using System.Collections.Generic; using System.Data.Linq.Mapping; //要引 阅读全文
摘要:
SQL中的排序中的排序 任务表,有个需求,排序按照重要程序排序,在重要的任务里按照更新时间来排序,然后在不重要的任务里按照ID来排序,解决如下: select a.id,a.title,a.isimport,a.updatetime from ( select * from mubiaos wher 阅读全文
摘要:
NET7下传图片到七牛云上 2023年11月10日记录一下,在自己的商品库项目里用到的,之前的代码没有关闭文件流,导致想在上传到七牛云后再删除本地图片就报错了,删除不了,改了一下,关闭了文件流,然后就可以删除了,记得引用nuget: Qiniu.SDK //using Qiniu.Util; //u 阅读全文
摘要:
uni app中建立公共方法utils 有一些公 用的方法可以抽出来的,像日期格式化之类的 步骤: 1. 建立文件 common/utils.js 文件 /** * 返回欢迎文本 * @param string name 姓名 */ export const testFun = function(n 阅读全文
摘要:
bat里循环1万次测试时间 @echo off @echo start: %time% set /a i=0 :LoopStart set /a i+=1 if %i% leq 10000 goto LoopStart @echo end: %time% 自己的电脑,循环1万次要7,8秒 公司服务器 阅读全文