聯絡E-mail: sean0704@gmail.com
<?php $arr = array(1,2,3); $obj = json_encode($arr, JSON_FORCE_OBJECT); ?> <script> var obj = new Object(); obj = <?=$obj?>; </script>
No comments:
Post a Comment