2019年3月20日

MySQL事务锁问题-Lock wait timeout exceeded

摘要: 转载:https://cloud.tencent.com/developer/article/1356959 问题现象: 接口响应时间超长,耗时几十秒才返回错误提示,后台日志中出现Lock wait timeout exceeded; try restarting transaction的错误 问题 阅读全文

posted @ 2019-03-20 17:51 江清澜静 阅读(161) 评论(0) 推荐(0) 编辑

bootstrap modal 移除数据

摘要: 有时业务需求,在弹出模态框时需要动态的展示,但是不做处理时,每次弹出的都是第一次的数据,所以需要监听模态框关闭,每次关闭需要先清除里面的数据。 阅读全文

posted @ 2019-03-20 10:32 江清澜静 阅读(385) 评论(0) 推荐(0) 编辑

bootstrap modal 点击头部移动

摘要: 1 $(".modal").each(function(){ 2 $(this).draggable({ 3 handle: ".modal-header" // 只能点击头部拖动 4 }); 5 $(this).css("overflow", "hidden"); // 防止出现滚动条... 阅读全文

posted @ 2019-03-20 09:43 江清澜静 阅读(176) 评论(0) 推荐(0) 编辑

js 四舍五入

摘要: 1 num.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ',') 阅读全文

posted @ 2019-03-20 09:41 江清澜静 阅读(81) 评论(0) 推荐(0) 编辑

导航