アロー関数について


従来
function [name]([param1[, param2[, ..., paramN]]]) {
   statements
}
 
 
アロー関数を使った場合
(param1, param2, …, paramN) => { statements }
 
// これと等価:  => { return expression; }
(param1, param2, …, paramN) => expression
 
// 引数を 1 個しか取らない場合
singleParam => { statements }
 
// 引数を取らない場合、丸括弧が必要です:
() => { statements }

 


Fatal error: Uncaught Error: Call to undefined function set_post_views() in /home/jszk/desnote.com/public_html/wpjs/wp-content/themes/the-thor-child/single.php:658 Stack trace: #0 /home/jszk/desnote.com/public_html/wpjs/wp-includes/template-loader.php(78): include() #1 /home/jszk/desnote.com/public_html/wpjs/wp-blog-header.php(19): require_once('/home/jszk/desn...') #2 /home/jszk/desnote.com/public_html/index.php(17): require('/home/jszk/desn...') #3 {main} thrown in /home/jszk/desnote.com/public_html/wpjs/wp-content/themes/the-thor-child/single.php on line 658