magento 2 method config 1. 模板渲染静态文件; <?php echo $this->getViewFileUrl('requirejs::require.js'); ?> 2.