fastAdmin 后台控制器传变量到对应js

html页面

<script>
    var shop: {$变量};
</script>

对应JS页面

console.log(shop);
// shop 即是变量信息

你可能感兴趣的:(fastAdmin)