PHP生成数组再传给js的方法
摘要:varslist='';varlist=eval(decodeURIComponent(slist));drawGpsMap(list);
<script type="text/javascript"> var slist = '<?php echo urlencode(json_encode($data['arr']));?>'; var list = eval(decodeURIComponent(slist)); drawGpsMap(list); </script>
【PHP生成数组再传给js的方法】相关文章: