页面加载时出现php bootstrap错误 [英] php bootstrap error when page load
本文介绍了页面加载时出现php bootstrap错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
php bootstrap json数据未在页面加载时加载
这是第一个错误
---------- ----------------------------
php bootstrap json data not loading on page load
this is first error
--------------------------------------
<script type="text/javascript">
// bootstrap variables
var bootstrap = {
useProxy: '<?= $use_proxy ?>',
apiBaseUrl: '<?= $api_base_url ?>',
url: '<?= $url ?>',
db: '<?= $client_db ?>',
name: '<?= $client_name ?>',
shortName: '<?= $client_short_name ?>'
};
if (<?= strlen($ag_filters) > 0 ?>) bootstrap.agFilters = JSON.parse('<?= $ag_filters ?>');
uncaught syntaxerror unexpected token (here comes this error)
if (<?= strlen($cr_filters) > 0 ?>) bootstrap.crFilters = JSON.parse('<?= $cr_filters ?>');
这是第二个错误
--------------------- -------------
bootstrap未定义
是的,这已经在另一台服务器上运行了但是我在新服务器中传输,因此无法正常工作
this is second error
----------------------------------
bootstrap is not defined
and yeah this already running on another server but I transfer in new server so it not working
推荐答案
use_proxy ? > ',
apiBaseUrl:'<? =
use_proxy ?>', apiBaseUrl: '<?=
api_base_url ? > ',
url:'<? =
api_base_url ?>', url: '<?=
url ? > ',
db:'<? =
url ?>', db: '<?=
这篇关于页面加载时出现php bootstrap错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文