HTTPRequest.hasPostData() 方法
當請求具有 POST 資料時為 True。請注意,當資料太長或無法以解碼形式立即取得時,即使此標記為 true,HTTPRequest.postData() 可能仍然未定義。在這種情況下,請使用 HTTPRequest.fetchPostData()。
簽名
class HTTPRequest {
abstract hasPostData(): boolean;
}
回傳
boolean
當請求具有 POST 資料時為 True。請注意,當資料太長或無法以解碼形式立即取得時,即使此標記為 true,HTTPRequest.postData() 可能仍然未定義。在這種情況下,請使用 HTTPRequest.fetchPostData()。
class HTTPRequest {
abstract hasPostData(): boolean;
}
回傳
boolean