- 博客(8)
- 资源 (1)
- 收藏
- 关注
转载 常用的js正则表达式
1 用户名正则//用户名正则,4到16位(字母,数字,下划线,减号)var uPattern = /^[a-zA-Z0-9_-]{4,16}$/;//输出 trueconsole.log(uPattern.test("caibaojian"));2 密码强度正则//密码强度正则,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符var pPattern ...
2018-12-27 16:11:50 180
原创 Bootstrap框架 禁用 响应式布局
1.移除标签禁用响应式布局的第一步买就是移除在head标签中添加的meta标签,如下所示<meta name="viewport" content="width=device-width, initial-scale=1.0”>2.官方讲解 实际例子3.加人 non-responsive.css 文件/* Template-specific stuff...
2018-12-22 16:24:10 1185
转载 thymeleaf js 获取项目路径 contextPath的方法
1.thymeleaf 标签:th:onclick="@{'location.href=\'' + ${#httpServletRequest.getContextPath()} + '/xxxx\'}" 2.javascript中引用 <script type="text/javascript" th:inline="javascript"> /*&l...
2018-12-18 22:55:26 12514
原创 layui table 数据请求controller map返回格式
List<User> userAll = userMapper.selectAll(); Map<String, Object> resultMap = new HashMap<>(); resultMap.put("data", userAll); resultMap.put("code", "0"); ..
2018-12-17 15:26:37 3079
原创 使用 ajax、 post时后台接收到的数据为空null
controller@RequestMapping(value="admin/insert/user") @ResponseBody public Map<String, String> insertUserType( @RequestParam( value =“username ”required=false) String user...
2018-12-15 17:23:44 15010 1
原创 ajax post 显示 400错误,Required String parameter 'paramter' is not present
ajax post 显示 400错误,Required String parameter 'paramter' is not present 不进后台。 1 post的参数是否与后台的参数一致2.post的参数类型,是否与后台的参数类型一致3.最重要的 @RequestParam(value="username",required=false) required=false一定记...
2018-12-15 15:47:23 2609
键盘记录
2015-03-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人