<?php $arr = array(1,2,3); $obj = json_encode($arr, JSON_FORCE_OBJECT); ?> <script> var obj = new Object(); obj = <?=$obj?> ...
確定! 回上一頁