<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><!-- jQuery and $ now point to 1.10.2 -->
<script src="//ajax.googleapis.com&
我有一个在HTML5画布中运行的javascript游戏。现在,我想将一个存储在PHP对象中的变量传递给我的程序。我希望在我的js中有一个像getVariable = function(){script that gets the variable from PHP and returns it as a string