<?php
function console_log($data){
  echo '<script>';
  echo 'console.log(' . json_encode($data) . ')';
  echo '</script>';
}

$var = "test";
console_log($var);
?>




関連 2020-02-04 11:32:54