网上都是这样的:var arr="<?php echo $menus;?>"; 但我用了之后一直报错:Uncaught SyntaxError: Unexpected identifier 最终这样可以 let menuList = <?php echo $menus; ?>; console.log(menuList);
略ོ略ོ略ོ?
网上都是这样的:var arr="<?php echo $menus;?>"; 但我用了之后一直报错:Uncaught SyntaxError: Unexpected identifier 最终这样可以 let menuList = <?php echo $menus; ?>; console.log(menuList);
略ོ略ོ略ོ?