会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
!Opts's Blog
一心只想搞钱的程序猿
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2018年6月5日
记一次数据库事务锁
摘要: 最近在做项目的时候碰到一个问题,事务锁。 TransactionOptions tos = new TransactionOptions(); tos.IsolationLevel = IsolationLevel.RepeatableRead; //行锁 只会锁住当前操作的那一行数据,当前表的其他
阅读全文
posted @ 2018-06-05 10:42 !opts
阅读(151)
评论(0)
推荐(0)
2018年5月18日
常用Js笔记,以后可能用得上
摘要: 商品 全选 ...
阅读全文
posted @ 2018-05-18 09:57 !opts
阅读(209)
评论(0)
推荐(0)
2018年5月16日
基于Nop增删改查代码模板
摘要: //获取列表[HttpPost] public ActionResult List(DataSourceRequest command, RemitOrderListModel model) { if (_workContext.CurrentCustomer == null) return nul
阅读全文
posted @ 2018-05-16 17:57 !opts
阅读(201)
评论(0)
推荐(0)
2018年5月12日
使用Layer Confirm弹窗没有点击确定按钮就执行了确定方法
摘要: 使用LayerConfirm方法确定回调方法不能传参。如果传参了,会直接执行不会等到点击确定在执行 Layer.confirm("确定执行此操作?", "执行该操作将不能撤回", "确定", AuditRemit, "取消", null); confirm: function (content, t
阅读全文
posted @ 2018-05-12 10:49 !opts
阅读(3365)
评论(0)
推荐(0)
2018年5月5日
页面表单传值
摘要: 表单提交传值的两种方式: 1. JS中直接 post提交: 2. JS中直接 模拟表单submit提交: 如果表单未指定提交地址,则直接提交当前页面。在该控制器下可以获取到表单传来的值
阅读全文
posted @ 2018-05-05 09:24 !opts
阅读(236)
评论(0)
推荐(0)
2018年5月2日
2018年5月2日 问题记录
摘要: 问题:1.服务上正式环境没有日志也没有MongDB日志2.文本日志只有部分,而且只有开始没有结束3.数据库连接字符串解密可能会存在问题。 分析:1.如果是数据库连接不上导致的,那么只需要将本地数据库连接改错,就可还原改BUG 并且肯定会有MongoDB日志,但是现在没有日志。2.MongoDB没有日
阅读全文
posted @ 2018-05-02 15:22 !opts
阅读(99)
评论(0)
推荐(0)
2018年4月9日
循环分页请求
摘要: var relationNos = new List<String>(); //有很多条数据 var loop = (int)Math.Ceiling(relationNos.Count * 0.1); //除以10 for (int i = 0; i < loop; ++i) { var orde
阅读全文
posted @ 2018-04-09 17:53 !opts
阅读(240)
评论(0)
推荐(0)
2018年4月8日
ImportHelper 导出帮助类
摘要: public class ImportExportHelper { /// /// Excel to DataTable /// /// 内容流 /// 文件名 /// 表头开始行(确定列和数据开始) /// 表头第一列(确定列和数据开始) /// ...
阅读全文
posted @ 2018-04-08 11:06 !opts
阅读(310)
评论(0)
推荐(0)
2018年3月20日
使用Layer弹出一个页面
摘要: 使用Get方式获取到请求页面的Html,然后作为Content使用Layer弹出来 $.get('@Url.Action("AddressAdd", "Customer")', {}, function (result) { if (result.Flag == 0) { ZTLayer.showT
阅读全文
posted @ 2018-03-20 10:15 !opts
阅读(3292)
评论(0)
推荐(0)
2018年3月5日
MongoDB使用手册
摘要: using MongoDB.Driver;using MongoDB.Bson; static void Main(string[] args) { MongoClient client = new MongoClient("mongodb://cjj:123456@127.0.0.1:27017"
阅读全文
posted @ 2018-03-05 13:28 !opts
阅读(214)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告