摘要: 实例: function a(){ var n = 0; this.fun = function () { n++; console.log(n); }; } var c = new a(); c.fun(); //1 c.fun(); //2 注:闭包就是能够读取其他函数内部变量的函数。在js中只 阅读全文
posted @ 2018-06-06 10:54 smj1990 阅读(66) 评论(0) 推荐(0) 编辑
摘要: (1)Innodb引擎,Innodb引擎提供了对数据库ACID事务的支持。并且还提供了行级锁和外键的约束。它的设计的目标就是处理大数据容量的数据库系统。(2)MyIASM引擎(原本Mysql的默认引擎),不提供事务的支持,也不支持行级锁和外键。(3)MEMORY引擎:所有的数据都在内存中,数据的处理 阅读全文
posted @ 2018-06-06 10:50 smj1990 阅读(117) 评论(0) 推荐(0) 编辑
摘要: (1) Lock是一个接口,是JDK层面的实现;而synchronized是Java中的关键字,是Java的内置特性,是JVM层面的实现; (2) synchronized 在发生异常时,会自动释放线程占有的锁,因此不会导致死锁现象发生;而Lock在发生异常时,如果没有主动通过unLock()去释放 阅读全文
posted @ 2018-06-06 10:43 smj1990 阅读(109) 评论(0) 推荐(0) 编辑
摘要: js循环加载数据列表 //订单渲染 function buildShowInfoDiv(data){ for(i in data.data){ var bussNo = data.data[i].bussNo; var items='<div class="weui-cells" onclick=" 阅读全文
posted @ 2017-11-01 11:30 smj1990 阅读(5300) 评论(0) 推荐(0) 编辑
摘要: js弹框: function malert(msg) { var html = "<div id='masks' class='masks' style='position: fixed; display: block; width: 100%; height: 100%; top: 0; left 阅读全文
posted @ 2017-11-01 10:14 smj1990 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1.上传本地代码到git:(1)git remote add origin git@gitlab.zhongjiaxin.com:DaWang/wechat-waiwei-hunter-new.git(2)git add .(3)git commit -m "注释"(4)git push -u or 阅读全文
posted @ 2017-11-01 10:09 smj1990 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: $('input[type="text"]:not([readonly]),input[type="search"]:not([readonly]), input[type="number"]:not([readonly]), textraea:not([readonly])').blur(func 阅读全文
posted @ 2017-10-31 17:42 smj1990 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 重置mysql数据库密码:(1)杀进程:taskkill /f /im mysqld-nt.exe(2)跳过密码验证:mysqld --skip-grant-tables(3)再打开cmd:mysql -u root(4)查看密码:select host,user,authentication_st 阅读全文
posted @ 2017-10-31 17:38 smj1990 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Hello World,who and where are you? 阅读全文
posted @ 2017-10-31 16:45 smj1990 阅读(110) 评论(0) 推荐(0) 编辑