![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web-JS/JQuery
文章平均质量分 81
最后一把钥匙
Java Web
展开
-
JSTL-格式化标签
JSTL格式化标签用来格式化并输出文本、日期、时间、数字。参考:http://www.runoob.com/jsp/jsp-jstl.htmlhttp://www.runoob.com/jsp/jstl-format-formatnumber-tag.html 引用格式化标签库的语法如下:<%@ taglib prefix="fmt" uri=...原创 2017-03-26 16:37:34 · 149 阅读 · 0 评论 -
jquery实现 城市选择框
jquery实现 城市选择框。 城市单选框: 1、引入js和css<script src="${staticPath}/resources/jquerySelect/js/city.js${version}" ></script><link rel="stylesheet" type="text/css" href="$.原创 2016-11-23 17:24:13 · 765 阅读 · 0 评论 -
表单组件的各种操作(取值、赋值、属性)
一、input-text<input type="text" name="customName" id="customName" value="${o.customName }"/> //取值: var customName1 = $('#customName').val(); var customName2 = $('input[name="...原创 2017-07-28 17:22:41 · 792 阅读 · 0 评论 -
jquery操作表格
//定义一个行元素,添加到多个表格中var tr = $('<tr>').append($('<td>').text('abc'));tr.clone(true).appendTo('table#table_pc');tr.clone(true).appendTo('table#table_ios');//清空table(除了第一行以外)...原创 2017-09-08 11:21:40 · 124 阅读 · 0 评论 -
js将form表单序列化[json字符串、数组、对象]
js将form表单序列化[json字符串、数组、对象](转至:http://www.cnblogs.com/bjlhx/p/6659392.html) 1.序列化为字符串$("#Form").serialize();//name=zhangsan&sex=1&age=20 2.序列化为数组 var formData=$("#form").seriali...原创 2017-09-08 16:59:27 · 598 阅读 · 0 评论 -
常用数据校验
*** 判断页面中指定id的元素是否存在: if($('#myid').length > 0){ //存在} 1、限制输入值只能为英文或中文://限制输入值只能为英文或中文:var reg_projectCooperation = /^[a-zA-Z\u4E00-\u9FA5]+$/;var projectCooperation = $...原创 2017-02-12 22:51:44 · 1012 阅读 · 0 评论