- 博客(13)
- 收藏
- 关注
转载 js异步返回
<script>function getSomething() { var r = 0; return new Promise(function(resolve) { setTimeout(function() { r = 2; resolve(r); }...
2018-01-23 11:57:00
101
转载 MYSQL分割字符串列转行
#准备示例数据create table tbl_name (ID int ,mSize varchar(100));insert into tbl_name values (1,'tiny,small,big');insert into tbl_name values (2,'small...
2017-05-19 11:13:00
1300
转载 JavaScript的if判断的四种书写方式
1.传统的写法 if(score<60){ alert('不及格'); }else{ alert('及格'); } 2.利用三目运算符来进行判断 score<60?alert('不及格'):alert('及格'); 3.利用&&...
2017-04-21 14:23:00
991
转载 解决java compiler level does not match the version of the installed java project facet
明明源码一模一样,为什么项目复制到另一台机器上,就会报“java compiler level does not match the version of the installed java project facet”错误呢? 如图所示: 其实要解决也很简单,在资源管理器下,找到项...
2017-04-20 17:40:00
84
转载 iCheck
初始化 $(input).iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green"}); 回调事件 iCheck提供了大量回调事件,都可以用来监听change事件。 ...
2017-03-20 17:00:00
129
转载 Myeclipse错误:Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project...
一.为什么会发生这类错误 在编写项目的时候,还没等部署好,就关闭了了myeclipse 10,会出现这种问题。 当项目不是由myeclipse创建的,需要检查.project 文件,并且添加com.genuitec.eclipse.j2eedt.core.webnature时,会...
2017-03-14 09:51:00
111
转载 用js写的WebSocketHeartBeat,心跳检测
var ws;//websocket实例 var lockReconnect = false;//避免重复连接 var wsUrl = 'ws:xxx.1.1.1'; function createWebSocket(url) { tr...
2017-02-26 15:28:00
698
转载 js获取当前服务器url
//获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/s...
2017-02-26 11:29:00
294
转载 input type=number时maxlength无效的解决办法
<input type="text" maxlength="5" /> 效果ok,当<input type="number" maxlength="5" />时maxlength失效,长度可以无限输入。解放方案:<input type="num...
2016-09-30 14:16:00
323
转载 <c:forEach>指定了items如何自定义控制循环次数
<c:forEach begin="0" end="$(fn:length(list) - 1)" var="i"><c:set var="obj" value="${list[i]}" />${obj}</c:forEach> ...
2016-09-27 17:27:00
423
转载 summernote富文本编辑器
一个超级简单方便实用的WYSIWYG编辑器,summernote <link href="../summernote/summernote.css" rel="stylesheet"><link href="../summernote/summernote-bs3.c...
2016-09-06 17:26:00
92
转载 fileinput 图片上传
<link href="../fileinput/fileinput.min.css" rel="stylesheet"><script src="../fileinput/fileinput.min.js"><script src="../fileinp...
2016-09-06 17:11:00
140
转载 chosen下拉框
<link href="../chosen/chosen.css" rel="stylesheet"/><script src="../chosen/chosen.jquery.js"/> 属性: <select class="chosen-select...
2016-09-06 16:35:00
462
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人