JavaScript&jquery
落叶不如离思多
这个作者很懒,什么都没留下…
展开
-
window.history.go(-1)
window.history.go(-1)和window.location.go(-1)的区别虽然都跑到上一页去了,但:window.history.go(-1)是返回上一页window.location.go(-1)是刷新上一页原创 2016-08-03 16:21:22 · 3716 阅读 · 1 评论 -
JQUERY的父,子,兄弟节点查找方法
jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(expr),但是是查找所有祖先元素,不限于父元素 jQuery.children(expr).返回所有子节点,这个方法只会返回直接转载 2016-09-01 09:31:06 · 200 阅读 · 0 评论 -
js 上传图片
js图片上传预览 function PreviewImage(imgFile) { var filextension=imgFile.value.substring(imgFile.value.lastIndexOf("."),imgFile.value.length); filextension=filextension.toLowerCase(); if原创 2016-10-10 09:24:30 · 164 阅读 · 0 评论 -
jquery 即点即改
> html> head lang="en"> meta charset="UTF-8"> title>即点即改title> head> style type="text/css"> td{ width: 200px; } style> body> table border="1"> tr heigh原创 2016-10-19 21:31:40 · 178 阅读 · 0 评论 -
Javascript刷新页面的几种方法:
1 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 document.execCommand('Refresh') 6 window.navigate(location) 7 location.replace(lo转载 2016-10-31 10:33:39 · 255 阅读 · 0 评论 -
js返回上一页并刷新的几种方法
js返回上一页并刷新的几种方法:返回上一页 刷新当前页面 返回前两页 返回上一页并刷新 返回上一页转载 2017-05-05 17:03:41 · 4504 阅读 · 0 评论