上一页 1 2 3 4 5 6 7 ··· 35 下一页
摘要: uni app 上拉加载下拉刷新代码 先记下来,以后备用 <template> <view class="app"> <u-row> <u-col span="4"> <!-- <mix-list-cell :title="category.caname" @onClick="show=true"> 阅读全文
posted @ 2024-01-01 12:13 牛腩 阅读(156) 评论(0) 推荐(0)
摘要: js中用canvas生成固定长宽的图片 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1. 阅读全文
posted @ 2024-01-01 11:48 牛腩 阅读(248) 评论(0) 推荐(0)
摘要: Linq To Sql 简记 用于以前的.net framework 引用System.Data.Linq 创建数据库对应的实体类 using System; using System.Collections.Generic; using System.Data.Linq.Mapping; //要引 阅读全文
posted @ 2023-12-27 11:35 牛腩 阅读(17) 评论(0) 推荐(0)
摘要: SQL中的排序中的排序 任务表,有个需求,排序按照重要程序排序,在重要的任务里按照更新时间来排序,然后在不重要的任务里按照ID来排序,解决如下: select a.id,a.title,a.isimport,a.updatetime from ( select * from mubiaos wher 阅读全文
posted @ 2023-12-14 09:57 牛腩 阅读(22) 评论(0) 推荐(0)
摘要: NET7下传图片到七牛云上 2023年11月10日记录一下,在自己的商品库项目里用到的,之前的代码没有关闭文件流,导致想在上传到七牛云后再删除本地图片就报错了,删除不了,改了一下,关闭了文件流,然后就可以删除了,记得引用nuget: Qiniu.SDK //using Qiniu.Util; //u 阅读全文
posted @ 2023-11-10 10:51 牛腩 阅读(20) 评论(0) 推荐(0)
摘要: uni app中建立公共方法utils 有一些公 用的方法可以抽出来的,像日期格式化之类的 步骤: 1. 建立文件 common/utils.js 文件 /** * 返回欢迎文本 * @param string name 姓名 */ export const testFun = function(n 阅读全文
posted @ 2023-11-07 09:38 牛腩 阅读(463) 评论(0) 推荐(0)
摘要: 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秒 公司服务器 阅读全文
posted @ 2023-11-06 22:17 牛腩 阅读(78) 评论(0) 推荐(0)
摘要: javascript中的时间格式化的方法 Date.prototype.format = function(format) { var o = { "M+": this.getMonth() + 1, //month "d+": this.getDate(), //day "h+": this.ge 阅读全文
posted @ 2023-11-06 11:42 牛腩 阅读(34) 评论(0) 推荐(0)
摘要: uni app 的ui插件uview里自带的一些正则表达式 取自"uni_modules\uview-ui\libs\function\test.js" /** * 验证电子邮箱格式 */ function email(value) { return /^\w+((-\w+)|(\.\w+))*\@ 阅读全文
posted @ 2023-11-06 11:30 牛腩 阅读(147) 评论(0) 推荐(0)
摘要: mysql/mariadb上建立新用户并设置远程连接 没有做之前总觉得很麻烦,真的做下去了一边上网搜索一边做结果还是很简单的。。想来在LINUX下也是一样吧,最主要的就是之前的安装软件。。。 2023年11月03日测试 ,用的mariadb 11.1.2 ,服务器上安装好后 命令行下连接 mysql 阅读全文
posted @ 2023-11-03 09:39 牛腩 阅读(643) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 35 下一页