码迷,mamicode.com
首页 >  
搜索关键字:ready    ( 3132个结果
前端 IoC 理念
背景 在前端项目中,随着项目越来越复杂,模块块之间的高耦合性导致项目越来越难以复用 简介 IoC 的全称叫做 Inversion of Control,可翻译为为「控制反转」或「依赖倒置」,它主要包含了三个准则 高层次的模块不应该依赖于低层次的模块,它们都应该依赖于抽象 抽象不应该依赖于具体实现,具 ...
分类:其他好文   时间:2020-06-07 12:40:00    阅读次数:50
博文文字折叠及跳转代码
代码折叠的方法是设置后台的js脚本,对每个markdown写的代码块上方设置一个按钮“显示代码”,点击该按钮后触发代码标签块的样式变化,后台设置的js代码如下所示: <script type="text/javascript"> $(document).ready(function () { var ...
分类:其他好文   时间:2020-06-05 21:13:46    阅读次数:75
Why failover-based implementations are not enough
Distributed locks with Redis – Redis https://redis.io/topics/distlock There is an obvious race condition with this model: Client A acquires the lock i ...
分类:其他好文   时间:2020-06-01 13:33:43    阅读次数:58
线程的 sleep()方法和 yield()方法有什么区别?
① sleep()方法给其他线程运行机会时不考虑线程的优先级,因此会给低优先级的线程以运行的机会;yield()方法只会给相同优先级或更高优先级的线程以运行的机会; ② 线程执行 sleep()方法后转入阻塞(blocked)状态,而执行 yield()方法后转入就绪(ready)状态; ③ sle ...
分类:编程语言   时间:2020-06-01 13:29:43    阅读次数:116
springboot整合quartz遇到的错误
1、spring boot整合quartz执行多个定时任务时报: org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'group1.job1', because one already exists with this id ...
分类:编程语言   时间:2020-05-31 16:26:57    阅读次数:201
php中手机号码验证的正则表达式
前端代码我使用jquery.validate.js,地图代码如下: <script type="text/javascrip"> $(document).ready(function() { $("#smForm").validate({ rules: { smMobilePhone: { requ ...
分类:移动开发   时间:2020-05-28 23:10:00    阅读次数:367
Docker容器启动失败 Failed to start Docker Application Container Engine
1.在k8s mster节点执行 1.kubectl get nodes 发现node节点没起来 [root@guanbin-k8s-master ~]# kubectl get nodes NAME STATUS ROLES AGE VERSION guanbin-k8s-master Ready ...
分类:移动开发   时间:2020-05-28 01:05:26    阅读次数:91
Python web 框架:web.py 【函数】
函数-$def 函数定义也是与在python中类似,用def,只是也要在前面加$,代码也要注意$的使用和缩进: 1 $def hello(name=""): 2 Hello $name! 函数调用也是用$加函数名的形式: 1 $hello("Lisa") 当然,定义函数时也可以与html代码混编: ...
分类:编程语言   时间:2020-05-25 17:36:24    阅读次数:71
HashMap
HashM /* * 常用方法:compute、computeIfAbsent、computeIfPresent、merge * containsKey、containsValue、get、 * put、putAll、clear、remove、isEmpty、size * entrySet(可进行流 ...
分类:其他好文   时间:2020-05-24 19:23:33    阅读次数:57
CSS3 3D变换之综合运用 - 3D box
先上效果图吧 点击'roll'按钮,会出现旋转的动画 代码如下 <!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript" src="JS/jquery-1.12.2.min.js"></script> < ...
分类:Web程序   时间:2020-05-23 13:20:00    阅读次数:53
3132条   上一页 1 ... 11 12 13 14 15 ... 314 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!