有没有办法让GET / POST数据只能使用一次并在刷新时清除?

Is there a way to make GET/Post data usable only once on first instance? I'm using GET data to check success of a comment and do some actions and display certain messages. But I don't want this actions to be repeatable on refresh of a browser. What can I do?

No, but you can add a unique token to the data and reject it on the server side if the token is already used.

Since you are using GET requests,

one way you can check for the request uri like

$is_new_request = true;

if(isset($_SESSION['req_uri']) && ($_SESSION['req_uri'] == $_SERVER['REQUEST_URI'])){
    $is_new_request = false;
    //handle your duplicate requests
    //better to redirect
}

if($is_new_request){
    $_SESSION['req_uri'] = $_SERVER['REQUEST_URI'];
    //Handle your first and unique requests
}

For POST requests

The better solution is a Post/Redirect/Get