我试图重新加载页面使用java脚本页面重新加载但页面中的帖子数据没有加载帖子数据被删除,而页面重新加载可以任何人帮助我
function currencychange(xxx) {
setTimeout('delay()', 2000);
}
function delay(){
location.reload();
}
Run Code Online (Sandbox Code Playgroud)
这是我用来重新加载页面的javascript代码
我使用curl从Punchtab获取结果,当我执行此代码时,我收到curl异常3没有URL设置!任何人都可以帮助我吗?
$tocken2 = "https://api.punchtab.com/v1/user?access_token=".$rest->authResponse->accessToken;
$ch1 = curl_init();
$ca = 'c:/path/to/ca-bundle.crt';
curl_setopt($ch, CURLOPT_URL,$tocken2);
curl_setopt ($ch1, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch1, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch1, CURLOPT_POST, 1);
curl_setopt($ch1, CURLOPT_REFERER, "http://locatefirms.in");
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec ($ch1);
$errorMsg = curl_error($ch1);
$errorNumber = curl_errno($ch1);
echo $errorMsg;
echo $errorNumber;
echo $server_output;exit;
Run Code Online (Sandbox Code Playgroud)