![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
码笼包
这个作者很懒,什么都没留下…
展开
-
MiniUi总结
1、输入框样式class="mini-textbox" //普通输入框class="mini-password" //密码输入框class="mini-textarea" //文本输入框lass="mini-datepicker" //日期选择(value="2010-10-12")cl原创 2018-11-23 16:14:43 · 3465 阅读 · 1 评论 -
lodop打印功能
1.界面配置lodop打印控件对象<script src="${ctx}/js/comm/lodop/LodopFuncs.js"></script><object id="LODOP_OB" style="display: none;" classid="cls原创 2018-12-05 10:54:40 · 720 阅读 · 0 评论 -
一些小问题总结
1.如何显示页面而不是窗体1.1 显示窗体:mini.open({ targetWindow: window, url: GVAR.contextPath+"/jsp/dwgl/web/dwgl/dwgl_bl.jsp", title: '办理', width:1200, onload: function (){...原创 2018-12-05 11:27:55 · 235 阅读 · 0 评论 -
前端JS
1.div居中<!--div居中,要设置margin值margin:0 auto;--><div style="text-align: center;width:500px;margin:0 auto;padding:0;" align="cneter"原创 2018-12-14 17:24:49 · 214 阅读 · 0 评论 -
Mixed Content: xxx This request has been blocked; the content must be served over HTTPS.
问题:如何在HTTPS 网页中引入HTTP资源: Mixed Content?原因:HTTPS页面里动态的引入HTTP资源,比如引入一个js文件,会被直接block掉的.在HTTPS页面里通过AJAX的方式请求HTTP资源,也会被直接block掉的。解决方案:<meta http-equiv="Content-Security-Policy" content="upgrade-insec...原创 2019-03-11 08:51:39 · 1511 阅读 · 0 评论 -
JS校验 “内容中是否含有汉字”
1.验证内容中是否含有汉字 isChinese : function (v) { var re = new RegExp("[\\u4E00-\\u9FFF]+","g"); if (re.test(v)){ return true; } return false; },...原创 2019-03-08 08:59:32 · 3201 阅读 · 0 评论 -
js中实现button按钮变灰不可用,可用的方法
1、使button按钮onclick函数失效,按钮变灰,同时光标不显示手型 document.getElementById("commitbtn").onclick = "return false;"; document.getElementById("commitbtn").style.backgroundColor = "gray...原创 2019-03-08 09:10:12 · 22882 阅读 · 0 评论 -
JS严格校验身份证号码
JS校验身份证号码/** * 身份证号码校验 */ onIDCardsValidation : function(e) { var idCard = e.value; if(e.value == ""){ e.isValid = true; } else if (e....转载 2019-03-08 09:12:02 · 1447 阅读 · 0 评论 -
如何避免点击一次from中的button按钮,表单就提交一次
button没有涉及type类型1.将button按钮的type设置成“button”<button **type="button"** style="height: 20px; width: 60px; background-color: AliceBlue;" onclick="xjdjBtn.xjdj_ck(mini.get('GMSFHM').getValue()...原创 2019-03-08 09:18:57 · 1782 阅读 · 0 评论