web最基础知识点
来源:互联网 发布:mac上怎么切换输入法 编辑:程序博客网 时间:2024/05/22 04:33
1.获取父类结点(上一级的上一级的第一个子节点)
var id=$(this).parent().parent().children(":first").text();
2.可以在标签里设置属性,用js获取
var a=$(this).attr("IDD");
<button value="${abc.count}" class="button" IDD=“可以获取”>
3.隔几秒跳转
var time = 3;
setInterval(function() {
time--;
$("#asc").text("注册成功," + time + "秒后跳转到登陆界面");
}, 1000);
4.网页中改变时间格式
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:formatDate value='${abcd.createtime}' pattern='yyyy-MM-dd HH:mm:ss'/>
5. 正则表达式
var password=$("#paw").val(); //获取要判断的值
var abc= /^[0-9]*$/g; //网上要搜的表达式
if(!abc.test(password))判断
{
alert("咋回事,你必须写数字");
}
});
6.ajax获取从后台传来的集合集合并遍历
$.post("${pageContext.request.contextPath}/text/gid",function(a){
$(a).each(function(i,item){
$("#select1").append("<option value="+item.mid+">"+item.mnam+"</option>");
});
两个jsp之间进行传值
Jsp1:传值:href="${pageContext.request.contextPath}/update.jsp?name=${abc.name}&sex=${abc.gender}&${abc.birthday}&sex=${abc.salary}&dept=${abc.department.name}"
Jsp2:接 收
${param.name}
7.模糊查询
select * from tcontacts ts,ttype te where ts.tid=te.tid and ts.cname like '%${value}%'
- web最基础知识点
- H5最基础知识点
- web基础知识点
- WEB前端基础知识点
- 最基础的HTML知识点
- web编程基础知识点总结
- web前端工程师基础知识点
- JAVA WEB SERVLET 基础知识点
- React native最基础的入门知识点
- XML与Web Service基础知识点
- Java WEB开发须知知识点---基础篇
- Java WEB开发须知知识点---基础篇
- java web基础 小测验 知识点总结
- web知识点
- Web知识点
- 网页编程基础第一章知识点总结——Web基础知识
- web前端面试-------javaScript基础知识点之数据类型
- 基础总结知识点-第一章:web技术的基础知识
- 计算机二级c随笔一
- shoppingcart基础页面
- Understand on the tf.variable_scope and tf.name_scope
- linux后台工作放入以及调出
- 面试题
- web最基础知识点
- 刷CCF的算法题(第八天)
- UML类图
- C#关键字快速回想
- Ac自动机模板代码
- Android攻城狮的第二门课(第3季)第1章 数据存储之SharedPreferences
- android中的Cursor类
- Python sorted对字典和列表进行排序
- 淘宝商品类目查询方法怎样查看别人商品的类目淘宝类目查询工具软件