I am trying to send MY location to my js file. The location have the gives correct value when it is echoed from php. But when i try to access it from my js it does not access the correct value instead contains the value `<?php echo $location;?>` well how can i access the value in js?
PHP
whi
我有一个使用PHP后端的遗留angular.js应用程序。如果PHP代码中存在错误,angular.js会显示一个无用的错误,如下所示: angular.js:14199 SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at fromJson (angular.js:1345)
at defaultHttpResponseTransform (angular.js:10878)
at angular.js:10969
a