局部刷新:
這個方法就多了去了,常見的有以下幾種;
$.get方法,$.post方法,$.getJson方法,$.ajax方法如下
前兩種使用方法基本上一樣
下面介紹全頁面刷新方法:有時候可能會用到
window.location.reload()刷新當前頁面.
parent.location.reload()刷新父親對象(用於框架)
opener.location.reload()刷新父窗口對象(用於單開窗口)
top.location.reload()刷新最頂端對象(用於多開窗口)