一:图示 二,js脚本 /** * jquery tips 提示插件 jquery.tips.js v0.1beta * * 使用方法 * $(selector).tips({ //selector 为jquery选择器 * msg:'your messages!', //你的提示消息 必填 * side:1, //提示窗显示位置 1,2,3,4 分别代表 上右下左 默认为1(上) 可选 * color:'#FFF', //提示文字色 默认为白色 可选 * bg:'#F00',//提示窗背景色…
利用TagName获取元素名称,进行批量非空校验 var input = document.getElementsByTagName("input"); for (var i=0;i<input.length;i++) { if(input[i].value == ""){ input[i].value="";console.log("存在空值"); } }…
第一种权限:菜单栏展示还是不展示的权限(粗颗粒) 实现方法,在SYS_ROLE表中添加一个字段rights,通过 public static BigInteger sumRights(String[] rights){ BigInteger num = new BigInteger("0"); for(int i=0; i<rights.length; i++){ num = num.setBit(Integer.parseInt(rights[i])); } return nu…
一,setBit testBit权限管理的理解 1.1.jdk7文档解释 public boolean testBit(int n)Returns true if and only if the designated bit is set. (Computes((this & (1<<n)) != 0).)Parameters:n - index of bit to test.Returns:true if and only if the designated bit is set.T…
form表单 确定按钮 js部分 确定按钮的方法…
<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><script src="https://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script></head><body ng-app=&quo…
function JTrim(s){    return s.replace(/(^\s*)|(\s*$)/g, "");} //你先调用一下这个方法,然后在判断 function CheckNull() { var userName = document.getElementById('textName').value; if (JTrim(UserName) != "") { //要执行的方法 } }…
oracle判断是否为null nvl(参数1,参数2) :如果参数1为null则返回参数2,否则返回参数1 mysql判断是否为null ifnull(参数1,参数2) :如果参数1为null则返回参数2,否则返回参数1 select nvl(null,'空值')  from dual  结果:空值 select nvl(0,'空值')  from dual  结果:0 在oracle和mysql中 这两个函数的用法一样.…
效果图 实现代码 //页面html <div> <ul class="listinfo"> <li> <span class="info">1.身份证正面照片</span> <van-uploader :after-read="onRead" accept="image/gif, image/jpeg" multiple> <div class=&q…
Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "utf-8")); Template template = getTemplate(ftlName, ftlPath); template.process(root, out); public static Template getTemplate(String ftlName, String ftlPath) thro…