nocache_headers() 用來傳送一個 header 頭資訊,告訴瀏覽器禁止快取當前頁面,一般在 Ajax 請求時使用,防止出現錯誤。
用法
屬性
此函式沒有屬性。
返回值
此函式無返回值。
例子
|
add_action('template_redirect','Bing_add_ajax');
|
其它
此函式位於:wp-includes/functions.php
nocache_headers() 用來傳送一個 header 頭資訊,告訴瀏覽器禁止快取當前頁面,一般在 Ajax 請求時使用,防止出現錯誤。
此函式沒有屬性。
此函式無返回值。
|
add_action('template_redirect','Bing_add_ajax');
|
此函式位於:wp-includes/functions.php