WordPress Child's Тема functions.php не читается

let webSite = 'https://google.com/' 
https.get(webSite, function (res) {
    // If you get here, you have a response.
    // If you want, you can check the status code here to verify that it's `200` or some other `2xx`.
    console.log(webSite + ' ' + res.statusCode)
}).on('error', function(e) {
    // Here, an error occurred.  Check `e` for the error.
    console.log(e.code)
});;

, если вы запустили это с помощью узла, он будет пустым журналом 200 до тех пор, пока Google не будет работать.

0
задан Grant Vinson 25 February 2015 в 18:30
поделиться