---
title: "jquey用法总结"
author: "hn2002"
date: "2009-08-13T16:42:05Z"
tags: []
slug: "jquey"
draft: false
lastmod: "2009-11-19T14:46:33Z"
id: 446441
url: "https://hn2002.iteye.com/blog/446441"
---

一 下面介绍全页面刷新方法：有时候可能会用到  
window.location.reload()刷新当前页面.  
parent.location.reload()刷新父亲对象（用于框架）  
opener.location.reload()刷新父窗口对象（用于单开窗口）  
top.location.reload()刷新最顶端对象（用于多开窗口）

二 表单

1 $('#id').val()或$('input#id').val() 取得id是text类型则取其输入框中的值

html &lt;input id = 'id' type='text' /&gt;

三 其他操作

1 $('#id').css('display','none'); 这是对css样式的操作