js向php传值

<script type="text/javascript">
var ability=<?php echo JSON($array);?>;
</script>
原文地址:https://www.cnblogs.com/siqi/p/2715947.html